Determines if a surface is a portion of a cylinder.
rhinoscriptsyntax.IsCylinder (object_id)
rhinoscript.surface.IsCylinder (object_id)
object_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.IsCylinder(surface):
print "The surface is a portion of a cylinder."
else:
print "The surface is not a portion of a cylinder."