Makes an existing curve a periodic NURBS curve.A periodic NURBS curve is a closed curve with a simple knot at the seam.If a joined curve is made periodic, it becomes a single-span curve and can no longer be exploded.
Rhino.MakeCurvePeriodic (strObject [, blnDelete])
strObject |
Required.字符串。The object's identifier. |
blnDelete |
可选参数。Boolean.Delete input curve.If omitted, the input curve will not be deleted (False). |
String |
If blnDelete is False, the identifier of the new object if successful. |
String |
If blnDelete is True, the identifier of the modified object if successful. |
Null |
如果执行不成功或出错,返回空值。 |
Const rhObjectCurve = 4
Dim strObject
strObject = Rhino.GetObject("Select a curve", rhObjectCurve)
If Not Rhino.IsCurvePeriodic(strObject) Then
Rhino.MakeCurvePeriodic strObject
End If