CurveDeviation



Your Ad Here

Returns the minimum and maximum deviation between two curve objects. For more information on curve deviation, see the Rhino help file for the CrvDeviation command.

Syntax

Rhino.CurveDeviation (strCurveA, strCurveB)

Parameters

strCurveA

Required.  String.  The identifier of the first curve object.

strCurveB

Required.  String.  The identifier of the second curve object.

Returns

Array

An array of numbers identifying the minimum and maximum deviation between the two curves if successful.

0

Curve A parameter at maximum overlap distance point.

1

Curve A parameter at maximum overlap distance point.

2

Maximum overlap distance.

3

Curve A parameter at minimum distance point.

4

Curve B parameter at minimum distance point.

5

Minimum distance between curves.

Null

On error or if no intervals of overlap were found.

Example

Dim strCurveA, strCurveB, arrDeviation

strCurveA = Rhino.GetObject("Select first curve to test", 4)

strCurveB = Rhino.GetObject("Select second curve to test", 4)

arrDeviation = Rhino.CurveDeviation(strCurveA, strCurveB)

If IsArray(arrDeviation) Then

  Rhino.Print "Minimum deviation = " & CStr(arrDeviation(5))

  Rhino.Print "Maximum deviation = " & CStr(arrDeviation(2))

End If

Also See

CurveArea

CurveAreaCentroid

 

Return to Rhino Index


Your Ad Here