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.
Rhino.CurveDirectionsMatch (strObject)
|
strCurve1 |
Required. String. The identifier of the first open curve to compare. |
|
strCurve2 |
Required. String. The identifier of the second open curve to compare. |
|
Boolean |
True if the curve directions match, otherwise False. |
|
Null |
On error. |
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