|
Line3DFactoryCreatePolyLine3D(Point3DCollection, Double, Color, Boolean, Boolean, LineCap, LineCap, Visual3D) Method |
Create series of 3D lines that are connected to each other.
Namespace: Ab3d.ModelsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static GeometryModel3D CreatePolyLine3D(
Point3DCollection positions,
double thickness,
Color color,
bool areLinesConnected,
bool isClosed,
LineCap startLineCap,
LineCap endLineCap,
Visual3D parentVisual3D
)
Parameters
- positions Point3DCollection
- positions as Point3DCollection that define the lines
- thickness Double
- line thickness in screen coordinates
- color Color
- line color
- areLinesConnected Boolean
- if true lines are connected to each other, else each line is drawn as a separate line
- isClosed Boolean
- if true the PolylineMesh3D closes the lines
- startLineCap LineCap
- LineCap that is used for start position of each line
- endLineCap LineCap
- LineCap that is used for end position of each line
- parentVisual3D Visual3D
- parent Visual3D
Return Value
GeometryModel3DGeometryModel3D that defines the 3D polyline
Remarks
The lines are defined by setting the first Point3D in positions collection as the start point. Than each position defines the new point to where the next line is drawn.
See Also