Selva Compute API Reference - v2.1.0
    Preparing search index...
    Index

    Constructors

    Properties

    controlPolygonLength: number

    Gets the length of the polyline connecting all control points.

    count: number

    Gets the number of control points in this curve.

    Methods

    • Parameters

      • w0: number

        Weight for first control point.

      • w1: number

        Weight for last control point.

      Returns boolean

      true on success, false on failure.

      Use a combination of scaling and reparameterization to change the end weights to the specified values.

    • ...

      Parameters

      • index: number

      Returns number[]

    • Returns boolean

      true on success, false on failure.

      Converts the curve to a Non-rational NURBS curve. Non-rational curves have unweighted control points.

    • Returns boolean

      true on success, false on failure.

      Converts the curve to a Rational NURBS curve. Rational NURBS curves have weighted control points.

    • ...

      Parameters

      • index: number
      • point: number[]

      Returns void