Verifies a surface object is planar.
rhinoscriptsyntax.IsSurfacePlanar (surface_id, tolerance=None)
rhinoscript.surface.IsSurfacePlanar (surface_id, tolerance=None)
surface_id |
Required. String or Guid. The object's identifier. |
tolerance |
Optional. Number. A tolerance to use when checking. The default is to use Rhino's current absolute tolerance. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface", rs.filter.surface)
if rs.IsSurfacePlanar(obj):
print "The surface is planar."
else:
print "The surface is not planar."