Click or drag to resize
Ab4d.SharpEngine logo

CurveLineNodeCurveGenerationAlgorithms Enumeration

Algorithms for curve generation.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public enum CurveGenerationAlgorithms
Members
Member nameValueDescription
FixedPositionsPerSegment0 When the curve is generated based on the positions per segment, then the number of generated points if fixed regardless of the curvature. This method is very fast, but produce too many points along nearly straight sections and too few where the curve bends sharply. Final number of curve points is: (curve_points - 1) * points_per_segment + 1.
AngleBased1 Angle based curve generation generates the curve points by recursively subdividing each cubic segment until two tolerances are satisfied:
`angleThresholdDegrees` limits how sharp the turn may be between consecutive chords,
while `minSegmentLength` guarantees that no chord grows longer than the specified length.
See Also