Here is a way that sorta works, though the Clash point and distance move around as you move the tolerance distance slider. Lowest slider value is best?
The sections in your pipes make it difficult to move a point around with Galapagos.
I went to an absurd extreme with CrvProx to get closest points between centerlines but the resulting surface points are further apart than my previous effort Interesting problem.
I have the original centerlines of these objects, and also a working script that shows me the distance from the curve of 1 Breb to the surface of another Breb.
I was just looking for a way to get this distance without the curve directly from 2 brebs. Now I know that there is no component that I didnât know about.
Thank you for your tips and the help !! âClashâ & âGalapagosâ were not known to me before.
Sofistik is a Plugin in Grasshopper, but nothink is inside the Canvas or the .gh file. I dont knew why some Sofistik settings are in .gh U can ignore it yes.
I ignored the whole file because the breps were empty, even though I had the Rhino file open.
When a file doesnât work when opened, itâs game over
P.S. Adjusted my sliders to five decimal places (âB1â = 0.53772, âB2â = 0.33402), I got the lowest distance yet between the two breps: 0.323218
I remember a Rhino command ( clearance ) that did exactly this @martinsiegrist ? The shortest line between two objects. Do you remember this or am I wrong? It doesnât exist anymore or got changed to something else - the current command closestpt requires you specify a point before.
And this one based on Josephâs use of clash component - I actually hadnât used it with a distance search - pretty handy (my line is still longer by ~.3 though)
Hereâs a simple iterative algorithm (using GhPython):
Edit: Had to increase the iterations a bit, but the profiler still doesnât kick in, so itâs plenty fast and gets a smallest distance of 0.323216 units. It would probably make sense to extend the algorithm to automatically stop searching after the minimal distance difference from the previous iteration drops below some threshold: