Class CatmullRomCurve3

Centripetal CatmullRom Curve - which is useful for avoiding cusps and self-intersections in non-uniform catmull rom curves. http://www.cemyuksel.com/research/catmullrom_param/catmullrom.pdf

curve.type accepts centripetal(default), chordal and catmullrom curve.tension is used for catmullrom which defaults to 0.5

Hierarchy

Constructors

Properties

arcLengthDivisions: number = 200

This value determines the amount of divisions when calculating the cumulative segment lengths of a curve via .getLengths. To ensure precision when using methods like .getSpacedPoints, it is recommended to increase .arcLengthDivisions if the curve is very large.

cacheArcLengths: number[]
closed: boolean
curveType: string
isCatmullRomCurve3: boolean = true
needsUpdate: boolean = false
points: Vector3[]
tension: number

Methods

  • Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation getTangent(t: number, optionalTarget?: T): T;

    Parameters

    Returns Vector3

  • Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equi distance

    Parameters

    • u: number
    • Optional distance: number

    Returns number

Generated using TypeDoc