Click or drag to resize

DrawingBlockVisualCreateLine(Document, Vector3, Vector3, Double, Color) Method

Create a new DrawingBlockVisual which contains a single line with a specific width.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public static DrawingBlockVisual CreateLine(
	Document doc,
	Vector3 lineStart,
	Vector3 lineEnd,
	double lineWidth,
	Color lineColor
)

Parameters

doc  Document
The document to add the visual to.
lineStart  Vector3
The start point of the line local to the new Visual.
lineEnd  Vector3
The end point of the line local to the new Visual.
lineWidth  Double
The width of the new line.
lineColor  Color
The color of the new line.

Return Value

DrawingBlockVisual
A new DrawingBlockVisual which contains a single line.
See Also