Click or drag to resize

NurbsCurvePointListChangeEndWeights Method

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

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public bool ChangeEndWeights(
	double w0,
	double w1


Type: SystemDouble
Weight for first control point.
Type: SystemDouble
Weight for last control point.

Return Value

Type: Boolean
true on success, false on failure.
The domain, Euclidean locations of the control points, and locus of the curve do not change, but the weights, homogeneous CV values and internal knot values may change. If w0 and w1 are 1 and the curve is not rational, the curve is not changed.
See Also