Click or drag to resize
Ab4d.SharpEngine logo

HeightMapContoursNode(HeightMapSurfaceNode, Single, Int32, Single, Boolean, String) Constructor

Creates a new HeightMapContoursNode that will use the CenterPosition, Size and HeightData values from the parent HeightMapSurfaceNode.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public HeightMapContoursNode(
	HeightMapSurfaceNode parentSurfaceNode,
	float[] contourHeights,
	int majorLinesFrequency = 0,
	float verticalOffset = 0,001f,
	bool combineContourLines = false,
	string? name = null
)

Parameters

parentSurfaceNode  HeightMapSurfaceNode
Parent HeightMapSurfaceNode instance.
contourHeights  Single
Array of heights for which contour lines should be generated. When null (the default), NumContourLines contour lines are be generated in the height range spanned by the height map data, with N being controlled by the NumContourLines property.
majorLinesFrequency  Int32  (Optional)
The frequency of major contour lines, in terms of minor contour lines (i.e., how many minor lines until next major one). When set to 0 or less, the major contour lines are not drawn and all contour lines are minor lines. Default value is 0.
verticalOffset  Single  (Optional)
Offset applied to the contour lines in the vertical (Y) direction, to avoid strict overlap with surface generated from the same height data. Default value is 0.001.
combineContourLines  Boolean  (Optional)
name  String  (Optional)
optional name
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.HeightMapContoursNode.#ctor(Ab4d.SharpEngine.SceneNodes.HeightMapSurfaceNode,System.Single[],System.Int32,System.Single,System.Boolean,System.String)"]

See Also