Returns the center point of a circle curve object.
Rhino.CircleCenterPoint (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. |
|
Array |
The 3-D center point of the circle if successful. |
|
Null |
If not successful, or on error. |
Dim strObject, arrPoint
strObject = Rhino.GetObject("Select circle")
If Rhino.IsCircle(strObject) Then
arrPoint = Rhino.CircleCenterPoint(strObject)
Rhino.AddPoint arrPoint
End If