Verifies an object is a circle curve object.
rhinoscriptsyntax.IsCircle (curve_id, segment_index)
rhinoscript.curve.IsCircle (curve_id, segment_index)
curve_id |
Required. String or Guid. The object's identifier. |
segment_index |
Optional. Number. If curve_id identifies a polycurve object, then segment_index identifies the curve segment of the polycurve to query. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a circle")
if rs.IsCircle(obj):
print "The object is a circle."
else:
print "The object is not a circle."