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