Verifies an object is surface. Brep objects with only one face are also considered surfaces.
rhinoscriptsyntax.IsSurface (objectId)
rhinoscript.surface.IsSurface (objectId)
objectId |
Required. Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
objectId = rs.GetObject("Select a surface")
if rs.IsSurface(objectId):
print "The object is a surface."
else:
print "The object is not a surface."