Calculate surface deviation after rebuild

(Willem Derks) #1


How would I go about calculating the maximum deviation from a rebuild surface and it’s original in RhinoCommon?
To prevent costly calculations by brute-force sampling the deviations, I’d like to know if there are some mathematical rules that limit the number of points to sample and still get an accurate result.
My first guess would be to sample only the deviations at both the surfaces ControlPoints, but I like to know if that assumption is correct.

Basically I’m looking for a way to get the Maximum deviation as calculated in the The Rebuild command :


Thanks -Willem

(Dale Fugier) #2

Hi @Willem,

To show you how this is calculated, I’ll need to add a new helper function to RhinoCommon for SR3.

Once this is in, I’ll post some source code.

– Dale

(Dale Fugier) #4

Hi @Willem,

If you install the SR3 RC, you can test this:

– Dale

(Willem Derks) #5

Thanks Dale, really appreciate your quick update!