Click or drag to resize
AB4D logo

Line3DFactoryCreatePolyLine3D(Point3DCollection, Double, Color, Boolean, LineCap, LineCap, Visual3D) Method

Create series of 3D lines that are connected to each other.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static GeometryModel3D CreatePolyLine3D(
	Point3DCollection positions,
	double thickness,
	Color color,
	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
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

GeometryModel3D
GeometryModel3D that defines the 3D polyline
Remarks

The lines are defined by setting the using 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