Verifies if an object is a mesh object.
rhinoscriptsyntax.IsMesh (object_id)
rhinoscript.mesh.IsMesh (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 mesh")
if rs.IsMesh(obj):
print "The object is a mesh."
else:
print "The object is not a mesh."