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.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
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