Tests a curve to see if it lies in a specific plane.
Rhino.IsCurveInPlane (strObject [, arrPlane])
strObject |
Required. String. The object's identifier. |
arrPlane |
Optional. Array. The plane to test. If omitted, the currently active construction plane is used. |
Boolean |
True if successful, otherwise False. |
Null |
If not successful, or on error. |
Dim strObject
strObject = Rhino.GetObject("Select a curve")
If Rhino.IsCurve(strObject) And Rhino.IsCurvePlanar(strObjec) Then
If Rhino.IsCurveInPlane(strObject) Then
Rhino.Print "The curve lies in the current cplane."
Else
Rhino.Print "The curve does not lie in the current cplane."
End If
Else
Rhino.Print "The object is not a planar curve."
End If