Creates a MeshGeometry3D representing a 3D line.

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static void AddLine(
	MeshGeometry3D mesh,
	Point3DCollection points,
	double thickness1,
	double thickness2,
	int sides,
	bool isClosed,
	bool isFilled,
	bool startCap,
	bool endCap,
	Rect3D clip
)
Visual Basic
Public Shared Sub AddLine ( _
	mesh As MeshGeometry3D, _
	points As Point3DCollection, _
	thickness1 As Double, _
	thickness2 As Double, _
	sides As Integer, _
	isClosed As Boolean, _
	isFilled As Boolean, _
	startCap As Boolean, _
	endCap As Boolean, _
	clip As Rect3D _
)
JScript
public static function AddLine(
	mesh : MeshGeometry3D, 
	points : Point3DCollection, 
	thickness1 : double, 
	thickness2 : double, 
	sides : int, 
	isClosed : boolean, 
	isFilled : boolean, 
	startCap : boolean, 
	endCap : boolean, 
	clip : Rect3D
)

Parameters

mesh
Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The MeshGeometry3D to fill with the geometry representing the line.
points
Type: System.Windows.Media.Media3D..::..Point3DCollection
The Point3DCollection defining the line.
thickness1
Type: System..::..Double
The first thickness of the line.
thickness2
Type: System..::..Double
The second thickness of the line.
sides
Type: System..::..Int32
The count of section sides for the line.
isClosed
Type: System..::..Boolean
Whether the line must be closed.
isFilled
Type: System..::..Boolean
Whether the line must be filled.
startCap
Type: System..::..Boolean
Whether the starting side of the line must have a cap.
endCap
Type: System..::..Boolean
Whether the ending side of the line must have a cap.
clip
Type: System.Windows.Media.Media3D..::..Rect3D
A Rect3D used as a bounding box (in the 3D space absolute coordinates) to clip the line. Specify Empty to ignore clipping.

Return Value

The calculated MeshGeometry3D.

See Also