RhinoCommon API
NurbsCurvePointListSetWeight Method |
Sets the weight of a control point at the given index
Note, if the curve is non-rational, it will be converted to rational.
Namespace: Rhino.Geometry.Collections
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool SetWeight( int index, double weight )
Public Function SetWeight ( index As Integer, weight As Double ) As Boolean
Parameters
- index
- Type: SystemInt32
Index of control point to set. - weight
- Type: SystemDouble
The control point weight.
Return Value
Type: Booleantrue if successful, false otherwise.

Rhino for Windows
Supported in: 6.14