Returns the circumference of a circle curve object.
Rhino.CircleCircumference (strObject [, dblTolerance])
strObject |
Required. String. The object's identifier. |
dblTolerance |
Optional. Number. If the curve is not a circle curve object, then the tolerance used to determine whether or not the NURBS form of the curve has the properties of a circle. If omitted, Rhino's internal zero tolerance is used. |
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