Click or drag to resize
AB4D logo

ContourLinesFactoryCreateContourLinePositions Method

CreateContourLinePositions creates positions for all contour lines (also known as isolines) and returns them in one Point3DCollection. The 3D geometry is defined by the positions and triangleIndices collection. The values for each position is defined in the positionValues list.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public Point3DCollection CreateContourLinePositions(
	Point3DCollection positions,
	Int32Collection triangleIndices,
	IList<double> positionValues
)

Parameters

positions  Point3DCollection
Point3DCollection with positions that define the 3D object
triangleIndices  Int32Collection
Int32Collection with triangle indices
positionValues  IListDouble
a list of double value that define the values for each 3D position

Return Value

Point3DCollection
Point3DCollection with all contour lines
Remarks

CreateContourLinePositions creates positions for all contour lines (also known as isolines) and returns them in one Point3DCollection.

The 3D geometry is defined by the positions and triangleIndices collection. The values for each position is defined in the positionValues list.

To generate positions for individual contour lines call CreateMultiContourLinePositions(Point3DCollection, Int32Collection, IListDouble) method.

This method always creates a new Point3DCollection. In case when the position values are changing and you want to preserve the existing Point3DCollection, you can call the AddContourLinePositions(Point3DCollection, Int32Collection, IListDouble, Point3DCollection).

See Also