Function getCurvePositions

  • Get a set of positions along a curve according to a number of segments per meter, optionally simplified/optimized by specifying a simplification threshold.

    To get a sub section, use the from and/or to parameters.

    Parameters

    • curve: Curve3D
    • from: number = 0
    • to: number = 1
    • segmentsPerMeter: number = 0.1
    • simplificationThreshold: number = 0

    Returns number[]

    segments per meter is always calculated from the start of the curve to ensure alingment when optimizing the number of vertices