NurbsCurvePointList

NurbsCurvePointList

Provides access to the control points of a NURBS curve.

Members

controlPolygonLength :double

Gets the length of the polyline connecting all control points.
Type:
  • double

count :int

Gets the number of control points in this curve.
Type:
  • int

Methods

changeEndWeights(w0, w1) → {bool}

Use a combination of scaling and reparameterization to change the end weights to the specified values.
Parameters:
Name Type Description
w0 double Weight for first control point.
w1 double Weight for last control point.
Returns:
true on success, false on failure.
Type
bool

get()

...

makeNonRational() → {bool}

Converts the curve to a Non-rational NURBS curve. Non-rational curves have unweighted control points.
Returns:
true on success, false on failure.
Type
bool

makeRational() → {bool}

Converts the curve to a Rational NURBS curve. Rational NURBS curves have weighted control points.
Returns:
true on success, false on failure.
Type
bool

set()

...