Click or drag to resize
AB4D logo

Line3DFactoryCreateMultiLine3D(IListPoint3D, Double, Color, LineCap, LineCap, Visual3D) Method

Creates series of 3D lines that are defined with positions. The lines are not connected with each other.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static GeometryModel3D CreateMultiLine3D(
	IList<Point3D> positions,
	double thickness,
	Color color,
	LineCap startLineCap,
	LineCap endLineCap,
	Visual3D parentVisual3D
)

Parameters

positions  IListPoint3D
positions as Point3DCol a list of Point3D that define the lines
thickness  Double
line thickness in screen coordinates
color  Color
line color
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 lines
Remarks

Each line is defined by two positions. positions[0] and positions[1] define the first line. positions[2] and positions[3] define the second line. End so on...

To remove duplicate lines defined in positions, use CreateMultiLine3D(IListPoint3D, Double, Color, LineCap, LineCap, Boolean, Visual3D) method.

To create connected lines use CreatePolyLine3D(Point3DCollection, Double, Color, Boolean, LineCap, LineCap, Visual3D) method.

See Also