Click or drag to resize
AB4D logo

ContourLinesFactoryCreateMultiContourLinePositions Method

CreateContourLinePositions creates positions for individual contour lines (also known as isolines) and returns them in an array of Point3DCollection (each element in the array represents positions for contour lines each value in contourLineValues - defined in constructor). 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[] CreateMultiContourLinePositions(
	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

CreateMultiContourLinePositions creates Point3DCollection for each contour line. The contour line are created with values that were specified in the class constructor (the returned array length is the same as the length of the contourLineValues array used in the constructor of this class).

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

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

See Also