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.
rhinoscriptsyntax.CurveDeviation (curve_a, curve_b)
rhinoscript.curve.CurveDeviation (curve_a, curve_b)
curve_a |
Required. String or Guid. The identifier of the first curve object. |
curve_b |
Required. String or Guid. The identifier of the second curve object. |
Tuple |
A tuple of numbers identifying the minimum and maximum deviation between the two curves if successful.
|
|||||||||||||||||||||
None |
On error or if no intervals of overlap were found. |
import rhinoscriptsyntax as rs
curveA = rs.GetObject("Select first curve to test", rs.filter.curve)
curveB = rs.GetObject("Select second curve to test", rs.filter.curve)
deviation = rs.CurveDeviation(curveA, curveB)
if deviation:
print "Minimum deviation =", deviation[5]
print "Maximum deviation =", deviation[2]