Click or drag to resize
Ab4d.SharpEngine logo

CurveLineNode Class

CurveLineNode class is used to create a 3D curve that is rendered as a single poly-line.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class CurveLineNode : PolyLineBaseNode

The CurveLineNode type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyAngleThreshold Angle threshold in degrees. Lower values produce more accurate curve. This property is used when GenerationAlgorithm is set to AngleBased. Default value is 5.
Public propertyControlPoints Control points of the curve. When positions in the array are changed, call the UpdatePositions method to update the mesh. To set both control points and weights at once, use the SetControlPointsAndWeights(Vector3, Single) method.
Public propertyCurveScale CurveScale is used for CurveThroughPoints and defines the curvature of the curve. Default value is 0.25.
Public propertyCurveType Type of the curve. Default value is CurveTypes.Undefined (linear line segments).
Public propertyGenerationAlgorithm Gets or sets the algorithm used to generate the curve. Default value is FixedPositionsPerSegment.
Public propertyMaxSubdivisionsCount maximum number of recursive subdivisions per segment. This property is used when GenerationAlgorithm is set to AngleBased. Default value is 6 that produces at max 64 positions per segment.
Public propertyMinSegmentLength Minimum segment length. Lower values produce more accurate curve. This property is used when GenerationAlgorithm is set to AngleBased. Default value is 2.
Public propertyPositionsPerSegment Number of generated positions per each curve segment. The higher the value, the smoother the curve. This property is used when GenerationAlgorithm is set to FixedPositionsPerSegment. Default value is 30.
Public propertyWeights Weights corresponding to control points. Used only with NURBS curve type. When weights in the array are changed, call the UpdatePositions method to update the mesh. To set both control points and weights at once, use the SetControlPointsAndWeights(Vector3, Single) method.
Top
Methods
 NameDescription
Public methodSetControlPointsAndWeights SetControlPointsAndWeights updates both ControlPoints and Weights in and then calls UpdatePositions only once.
Public methodUpdatePositions UpdatePositions method must be called when the value in the ControlPoints or Weights are changed.
Top
See Also