Click or drag to resize
AB4D logo

Line3DFactoryCreateMultiLine3D(IListPoint3D, Double, Color, LineCap, LineCap, Boolean, Viewport3D) Method

Creates series of 3D lines that are defined with positions. With setting removeDuplicates parameter it is possible to remove duplicate lines. 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,
	bool removeDuplicates,
	Viewport3D parentViewport3D
)

Parameters

positions  IListPoint3D
positions as 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
removeDuplicates  Boolean
if true the duplicate lines (with same start and end positions) are removed from the positions collection
parentViewport3D  Viewport3D
parent Viewport3D

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, Viewport3D) method.

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

See Also