IsCurveInPlane

Tests a curve to see if it lies in a specific plane.

Syntax

Rhino.IsCurveInPlane (strObject [, arrPlane])

Parameters

strObject

Required.  String.  The object's identifier.

arrPlane

Optional.  Array. The plane to test.  If omitted, the currently active construction plane is used.

Returns

Boolean

True if successful, otherwise False.

Null

If not successful, or on error.

Example

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

Also See

IsCurve

IsCurvePlanar