Returns the radius of an arc curve object.
rhinoscriptsyntax.ArcRadius (curve_id, segment_index=-1)
rhinoscript.curve.ArcRadius (curve_id, segment_index=-1)
curve_id |
Required. String or Guid representing the identifier for the curve |
segment_index |
Optional. Number. If curve_id identifies a polycurve object, then segment_index identifies the curve segment of the polycurve to query. |
Number |
The radius of the arc if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select arc")
if rs.IsArc(id):
radius = rs.ArcRadius(id)
print "Arc radius:", radius