M_Rhino_Geometry_Collections_NurbsCurvePointList_ChangeEndWeights - mcneel/rhinocommon-api-docs GitHub Wiki
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) Version: Rhino 6.0
C#
public bool ChangeEndWeights(
double w0,
double w1
)
VB
Public Function ChangeEndWeights (
w0 As Double,
w1 As Double
) As Boolean
- w0
- Type: System.Double
Weight for first control point. - w1
- Type: System.Double
Weight for last control point.
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.
Supported in: 6.0.16224.21491, 5D58w
NurbsCurvePointList Class
Rhino.Geometry.Collections Namespace