Class BillboardGeometryBuilder
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Builds a mesh geometry for a collection of billboards.
public sealed class BillboardGeometryBuilder : ScreenGeometryBuilder
- Inheritance
-
BillboardGeometryBuilder
- Inherited Members
Constructors
BillboardGeometryBuilder(Visual3D)
Initializes a new instance of the BillboardGeometryBuilder class.
public BillboardGeometryBuilder(Visual3D visual)
Parameters
visualVisual3DThe visual.
Methods
CreateIndices(int)
Creates the triangle indices.
public static Int32Collection CreateIndices(int n)
Parameters
nintThe number of points.
Returns
- Int32Collection
The triangle indices.
GetPinPositions(IList<Billboard>, Vector, double)
Gets the billboard positions with the current screen transform.
public Point3DCollection GetPinPositions(IList<Billboard> billboards, Vector offset, double pinWidth)
Parameters
billboardsIList<Billboard>The billboards.
offsetVectorThe offset.
pinWidthdoubleWidth of the pins.
Returns
- Point3DCollection
The mesh vertices.
GetPositions(IList<Billboard>, Vector)
Gets the billboard positions with the current screen transform.
public Point3DCollection GetPositions(IList<Billboard> billboards, Vector offset)
Parameters
Returns
- Point3DCollection
The positions.