Verifies an object is a Brep, or a boundary representation model, object.
rhinoscriptsyntax.IsBrep (object_id)
rhinoscript.surface.IsBrep (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a Brep")
if rs.IsBrep(obj):
print "The object is a Brep."
else:
print "The object is not a Brep."