Table of Contents

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

visual Visual3D

The 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

n int

The 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

points IList<Point3D>

The points of the line segments.

thickness double

The thickness of the line.

depthOffset double

The depth offset. A positive number (e.g. 0.0001) moves the point towards the camera.

clipping CohenSutherlandClipping

The clipping.

Returns

Point3DCollection

The positions collection.