Adds object(s) to the scene.
Namespace:
ceometric.VectorGeometryAssembly: 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 ) |
Visual Basic (Declaration) |
---|
Public Sub Add ( _ line As Line, _ layer As Scene..::.Layer, _ startFactor As Double, _ endFactor As Double _ ) |
Visual C++ |
---|
public: void Add( Line^ line, Scene..::.Layer^ layer, double startFactor, double endFactor ) |
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.
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.
The color follows from the color of the layer.