Click or drag to resize

DrawingBlockVisualCreateLine Method (Document, Vector3, Vector3, Color)

Create a new DrawingBlockVisual which contains a single line.

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

Parameters

doc
Type: Demo3D.VisualsDocument
The document to add the visual to.
lineStart
Type: Microsoft.DirectXVector3
The start point of the line local to the new Visual.
lineEnd
Type: Microsoft.DirectXVector3
The end point of the line local to the new Visual.
lineColor
Type: System.DrawingColor
The color of the new line.

Return Value

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