Verifies a surface object is closed in the specified direction. If the surface fully encloses a volume, it is considered a solid.
rhinoscriptsyntax.IsSurfaceClosed (surface_id, direction)
rhinoscript.surface.IsSurfaceClosed (surface_id, direction)
surface_id |
Required. String or Guid. The object's identifier. |
direction |
Required. Number. The direction, either 0 = U, or 1 = V. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface", rs.filter.surface)
if rs.IsSurfaceClosed(obj, 0):
print "The surface is closed in the U direction."
else:
print "The surface is not closed in the U direction."