NurbsCurvePointList

NurbsCurvePointList

Provides access to the control points of a NURBS curve.

Members

controlPolygonLength :double

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

count :int

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

Methods

changeEndWeights(w0, w1) → {bool}

Description:
  • 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()

Description:
  • ...

makeNonRational() → {bool}

Description:
  • 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}

Description:
  • 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()

Description:
  • ...