Rebuilds a curve to given degree and control point count. For more information, see the Rhino help file for the Rebuild command.
Rhino.RebuildCurve (strObject [, intDegree [, intPointCount]])
strObject |
Required. String. The object's identifier. |
intDegree |
Optional. Number. The new degree, which must be greater than 1. The default is 3. |
intPointCount |
Optional. Number. The new point count, which must be bigger than intDegree. With closed curves, the minimum point count is 3. The highest accepted point count is 1000. |
Boolean |
True or False indicating success or failure. |
Null |
On error. |
Const rhCurve = 4
Dim strCurve
strCurve = Rhino.GetObject("Select curve to rebuild", rhCurve)
If Not IsNull(strCurve) Then
Rhino.RebuildCurve strCurve, 3, 10
End If