Returns the circumference of a circle curve object.
rhinoscriptsyntax.CircleCircumference ( curve_id, segment_index=-1 )
rhinoscript.curve.CircleCircumference ( 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 circumference of the circle if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select circle")
if rs.IsCircle(id):
circumference = rs.CircleCircumference(id)
print "Circle circumference:", circumference