Returns the center point of an elliptical-shaped curve object.
rhinoscriptsyntax.EllipseCenterPoint ( curve_id )
rhinoscript.curve.EllipseCenterPoint ( curve_id )
curve_id |
Required. String or Guid. The object's identifier. |
Point3d |
The 3-D center point of the ellipse if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select ellipse")
if rs.IsEllipse(obj):
point = rs.EllipseCenterPoint(obj)
rs.AddPoint( point )