Class LineGeometryBuilder
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Builds a mesh geometry for a collection of line segments.
public sealed class LineGeometryBuilder : ScreenGeometryBuilder
- Inheritance
-
LineGeometryBuilder
- Inherited Members
Constructors
LineGeometryBuilder(Visual3D)
Initializes a new instance of the LineGeometryBuilder class.
public LineGeometryBuilder(Visual3D visual)
Parameters
visualVisual3DThe visual parent of the geometry (the transform is calculated from this object).
Methods
CreateIndices(int)
Creates the triangle indices.
public Int32Collection CreateIndices(int n)
Parameters
nintThe number of points.
Returns
- Int32Collection
Triangle indices.
CreatePositions(IList<Point3D>, double, double, CohenSutherlandClipping?)
Creates the positions for the specified line segments.
public Point3DCollection CreatePositions(IList<Point3D> points, double thickness = 1, double depthOffset = 0, CohenSutherlandClipping? clipping = null)
Parameters
pointsIList<Point3D>The points of the line segments.
thicknessdoubleThe thickness of the line.
depthOffsetdoubleThe depth offset. A positive number (e.g. 0.0001) moves the point towards the camera.
clippingCohenSutherlandClippingThe clipping.
Returns
- Point3DCollection
The positions collection.