Determines if a surface is a portion of a sphere.
rhinoscriptsyntax.IsSphere (surface_id)
rhinoscript.surface.IsSphere (surface_id)
surface_id |
Required. String or Guid. The surface object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
surface = rs.GetObject("Select a surface", rs.filter.surface)
if surface:
if rs.IsSphere(surface):
print "The surface is a portion of a sphere."
else:
print "The surface is not a portion of a sphere."