|
Line3DFactoryCreatePolyLine3D(Point3DCollection, Double, Color, Boolean, LineCap, LineCap, Viewport3D) 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 isClosed,
LineCap startLineCap,
LineCap endLineCap,
Viewport3D parentViewport3D
)
Parameters
- positions Point3DCollection
- positions as Point3DCollection that define the lines
- thickness Double
- line thickness in screen coordinates
- color Color
- line color
- 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
- parentViewport3D Viewport3D
- parent Viewport3D
Return Value
GeometryModel3DGeometryModel3D that defines the 3D polyline
Remarks
The lines are defined by 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