CurveDirectionsMatch



Your Ad Here

Tests if two curve objects are generally in the same direction or if they would be more in the same direction if one of them were flipped.

Syntax

Rhino.CurveDirectionsMatch (strObject)

Parameters

strCurve1

Required. String. The identifier of the first open curve to compare.

strCurve2

Required. String. The identifier of the second open curve to compare.

Returns

Boolean

True if the curve directions match, otherwise False.

Null

On error.

Example

Dim strCurve1, strCurve2, blnCompare

strCurve1 = Rhino.GetObject("Select first curve to compare", 4)

strCurve2 = Rhino.GetObject("Select second curve to compare", 4)

blnCompare = Rhino.CurveDirectionsMatch(strCurve1, strCurve2)

If blnCompare = True Then

  Rhino.Print "Curves are in the same direction"

Else

  Rhino.Print "Curve are not in the same direction"

End If

Also See

ReverseCurve

Return to Rhino Index


Your Ad Here