Adds object(s) to the scene.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public void Add(
	List<Line> lines,
	Scene..::.Layer layer,
	double startFactor,
	double endFactor,
	byte color
)
Visual Basic (Declaration)
Public Sub Add ( _
	lines As List(Of Line), _
	layer As Scene..::.Layer, _
	startFactor As Double, _
	endFactor As Double, _
	color As Byte _
)
Visual C++
public:
void Add(
	List<Line^>^ lines, 
	Scene..::.Layer^ layer, 
	double startFactor, 
	double endFactor, 
	unsigned char color
)

Parameters

lines
Type: System.Collections.Generic..::.List<(Of <(Line>)>)
A generic list of Line.
layer
Type: ceometric.VectorGeometry..::.Scene..::.Layer
A layer the lines lie on.
startFactor
Type: System..::.Double
A factor for the direction vector of the line to obtain the start point.
endFactor
Type: System..::.Double
A factor for the direction vector of the line to obtain the end point.
color
Type: System..::.Byte
A color value between [1, 255] defining a color different from the layer color.
  • 1: red
  • 2: yellow
  • 3: green
  • 4: cyan
  • 5: blue
  • 6: magenta
  • 7: white

Remarks

Since line with infinite length can not be added to the scene. The start and end points are obtained by multiplying the direction vector of the line by startFactor and endFactor.

See Also