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

    Constructors

    Properties

    count: number

    Total number of knots in this curve.

    isClampedEnd: boolean

    Gets a value indicating whether or not the knot vector is clamped at the end of the curve. Clamped curves are coincident with the first and last control-point. This requires fully multiple knots.

    isClampedStart: boolean

    Gets a value indicating whether or not the knot vector is clamped at the start of the curve. Clamped curves start at the first control-point. This requires fully multiple knots.

    Methods

    • Parameters

      • knotSpacing: number

        Spacing of subsequent knots.

      Returns boolean

      true on success, false on failure.

      Compute a clamped, uniform, periodic knot vector based on the current degree and control point count. Does not change values of control vertices.

    • Parameters

      • knotSpacing: number

        Spacing of subsequent knots.

      Returns boolean

      true on success, false on failure.

      Compute a clamped, uniform knot vector based on the current degree and control point count. Does not change values of control vertices.

    • ...

      Parameters

      • index: number

      Returns void

    • Parameters

      • value: number

        Knot value to insert.

      Returns boolean

      true on success, false on failure.

      Inserts a knot and update control point locations. Does not change parameterization or locus of curve.

    • Parameters

      • index: number

        Index of knot to query.

      Returns number

      The multiplicity (valence) of the knot.

      Get knot multiplicity.

    • ...

      Parameters

      • index: number
      • knot: number

      Returns void

    • Parameters

      • start: boolean

        true if the query targets the first knot. Otherwise, the last knot.

      Returns number

      A component.

      Computes the knots that are superfluous because they are not used in NURBs evaluation. These make it appear so that the first and last curve spans are different from interior spans. http://wiki.mcneel.com/developer/onsuperfluousknot

    • ...

      Returns number[]