Verifies an object is a plane surface. Plane surfaces can be created by the Plane command. Note, a plane surface is not a planar NURBS surface.
rhinoscriptsyntax.IsPlaneSurface(object_id)
rhinoscript.surface.IsPlaneSurface(object_id)
object_id |
Required. String or Guid. The identifier of the object to verify. |
Boolean |
True or False indicating success or failure. |
None |
On error. |
import rhinoscriptsyntax as rs
surface = rs.GetObject("Select surface to trim", rs.filter.surface)
if surface and rs.IsPlaneSurface(surface):
print "got a plane surface"
else:
print "not a plane surface"