 |
HeightMapContoursNodeCreateContourLine(Single, Single, Boolean) Method |
Returns a list of positions that represents the contour line segments at the specified height for the height map specified by the
ParentSurfaceNode or
HeightData.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic List<Vector3>? CreateContourLine(
float contourLineHeight,
float contourOffset,
bool isLineHeightInDataUnits = true
)
Parameters
- contourLineHeight Single
- Y-coordinate value at which contour lines are to be generated. The value specifies a
horizontal plane where contour is computed.
- contourOffset Single
- The vertical offset to apply to each generated contour line segment. This value is added to the Y component
of each contour point.
- isLineHeightInDataUnits Boolean (Optional)
- When true (by default), then the contourLineHeights values are specified in the units of the HeightData;
when false then the mesh units are used (offset by CenterPosition and scaled by Size)
Return Value
ListVector3a list of positions that represents the contour line segments. If no segments are found for a given height, then null is returned.
RemarksThe method processes
each triangle in the height mesh and determines where the specified contour height intersect the triangle. The
resulting segment is offset vertically by the specified amount. The returned list contains the contour for that contour height.
See Also