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(
	Line line,
	Scene..::.Layer layer,
	double startFactor,
	double endFactor,
	byte color
)
Visual Basic (Declaration)
Public Sub Add ( _
	line As Line, _
	layer As Scene..::.Layer, _
	startFactor As Double, _
	endFactor As Double, _
	color As Byte _
)
Visual C++
public:
void Add(
	Line^ line, 
	Scene..::.Layer^ layer, 
	double startFactor, 
	double endFactor, 
	unsigned char color
)

Parameters

line
Type: ceometric.VectorGeometry..::.Line
A line.
layer
Type: ceometric.VectorGeometry..::.Scene..::.Layer
A layer the line lies 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