Class PointGeometryBuilder
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Builds a mesh geometry for a collection of points.
public sealed class PointGeometryBuilder : ScreenGeometryBuilder
- Inheritance
-
PointGeometryBuilder
- Inherited Members
Constructors
PointGeometryBuilder(Visual3D)
Initializes a new instance of the PointGeometryBuilder class.
public PointGeometryBuilder(Visual3D visual)
Parameters
visualVisual3DThe visual.
Methods
CreateIndices(int)
Creates the triangle indices.
public Int32Collection CreateIndices(int n)
Parameters
nintThe number of points.
Returns
- Int32Collection
The triangle indices.
CreatePositions(IList<Point3D>, double, double)
Creates the positions for the specified points.
public Point3DCollection CreatePositions(IList<Point3D> points, double size = 1, double depthOffset = 0)
Parameters
pointsIList<Point3D>The points.
sizedoubleThe size of the points.
depthOffsetdoubleThe depth offset. A positive number (e.g. 0.0001) moves the point towards the camera.
Returns
- Point3DCollection
The positions collection.