Maximum distance between two surfaces

I found conversation about minimum distance between two surfaces.
Is there in Rhino some command to find maximum perpendicular distance between two surfaces?
It would be nice to know the location also.
Green curve in attachment file is just guess/example where it might be.

Thanks: Henrimaximum distance.3dm (100.4 KB)

Hi Henri - I dredged up an old script that I made for this - you can give it a try - it marks the max deviation location. Note the script uses the surface anlaysis meshes, so it helps a lot, in terms of accuracy, to run a surface anlaysis command like CurvatureAnalysis on the surfaces first and set the analysis mesh (Adjust Mesh button in the control) to be very fine/accurate. The easy way to do this is to set the “Maximum initial grid quads” in the detailed controls to something large, like 5 000 - 10 000. Close that then run this tool…

SurfaceDeviation (3).zip (3.7 KB)
To install, unzip the rvb file from the archive to some place that makes sense to store it, and then drag and drop the rvb onto an open Rhino. This will add the alias

SrfDeviation

which can be used like a normal Rhino command.

Note the script uses analysis meshes to do its thing, so you’ll want to run something like CurvatureAnlaysis once in your file and adjust the mesh to be pretty fine - that will establish the analysis mesh settings for the currrent file and the script will have more to work with.

image

image

image

-Pascal

1 Like

Thank you Pascal!
Sounds great, I’ll try it next week!

Henri

Works great, exactly what I needed :smile: Thanks Pascal!

OK, good deal!

-Pascal