Verifies an object is a polysurface. Polysurfaces consists of two or more surfaces joined together. If the polysurface fully encloses a volume, it is considered a solid. In some other 3-D programs, this is called a "quilt."
rhinoscriptsyntax.IsPolysurface (object_id)
rhinoscript.surface.IsPolysurface (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")
if rs.IsPolysurface(obj):
print "The object is a polysurface."
else:
print "The object is not a polysurface."