Verifies a polysurface object is closed. If the polysurface fully encloses a volume, it is considered a solid.
rhinoscriptsyntax.IsPolysurfaceClosed (object_id)
rhinoscript.surface.IsPolysurfaceClosed (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a polysurface", rs.filter.polysurface)
if rs.IsPolysurfaceClosed(obj):
print "The polysurface is closed."
else:
print "The polysurface is not closed."