Returns the circumference of a circle curve object.
Rhino.CircleCircumference (strObject [, intIndex])
|
strObject |
Required. String. The object's identifier. |
|
intIndex |
Optional. Number. If strObject identifies a polycurve object, then intIndex identifies the curve segment of the polycurve to query. |
|
Number |
The circumference of the circle if successful. |
|
Null |
If not successful, or on error. |
Dim strObject, dblCircumference
strObject = Rhino.GetObject("Select circle")
If Rhino.IsCircle(strObject) Then
dblCircumference = Rhino.CircleCircumference(strObject)
Rhino.Print "Circle circumference: " & CStr(dblCircumference)
End If