Makes a periodic surface non-periodic.Non-periodic surfaces can develop kinks when deformed.
Rhino.MakeSurfaceNonPeriodic (strObject, intDirection [, blnDelete])
strObject |
Required.字符串。The object's identifier. |
intDirection |
Required.Number.The direction to make non-periodic, either 0 = U, or 1 = V. |
blnDelete |
可选参数。Boolean.Delete input surface.If omitted, the input surface 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 rhObjectSurface = 8
Dim strObject
strObject = Rhino.GetObject("Select a surface", rhObjectSurface)
If Rhino.IsSurfacePeriodic(strObject, 0) Then
Rhino.MakeSurfaceNonPeriodic strObject, 0
End If
If Rhino.IsSurfacePeriodic(strObject, 1) Then
Rhino.MakeSurfaceNonPeriodic strObject, 1
End If