Verifies a surface object is closed in the specified direction. If the surface fully encloses a volume, it is considered a solid.
Rhino.IsSurfaceClosed (strObject, intDirection)
strObject |
Required. String. The object's identifier. |
intDirection |
Required. Number. The direction, either 0 = U, or 1 = V. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
Const rhObjectSurface = 8
Dim strObject
strObject = Rhino.GetObject("Select a surface", rhObjectSurface)
If Rhino.IsSurfaceClosed(strObject, 0) Then
Rhino.Print "The surface is closed in the U direction."
Else
Rhino.Print "The surface is not closed in the U direction."
End If