Verifies an object is an elliptical-shaped curve object.
rhinoscriptsyntax.IsEllipse (object_id)
rhinoscript.curve.IsEllipse (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select an ellipse")
if rs.IsEllipse(obj):
print "The object is an ellipse."
else:
print "The object is not an ellipse."