Method to select an object and any others that touch it....?


I thought I used to be able to do this with stock Rhino but I can’t figure it out now…? May be it was a script I had at one time.


( Charles C.) #2

Maybe you can try a logic similar as this post : Remove duplicate geometries

this script find nearest elements and group them (and finally select only 1 elements from each group).

Default is set to 10 units, you can change it to the proximity you want.


That might work if I knew anything about Grasshopper.



Bringing this topic back up…I really need to find a way to get this to work.

Ideally I would like to be able to set a tolerance and then select a polysurface/extrusion and have it automatically select any other polysurfaces/extrusions that fall within those bounds.

If this is something that will take quite a lot of scripting I am willing to pay.

I have attached a small portion of a limestone/precast project I am working on. I need to be able to select one of the concrete/precast polysurfaces and have the script select all the limestone that will be attached to it.

The concrete/precast is on layer precast.

Thanks in advance…

PS…Attached file is in R6 format, I can post an R5 if needed.limestone-precast-selection-script.3dm (19.8 MB)

(Pascal Golay) #5

Hm… it should be relatively easy with boxy things like this - presumably you want to be able to set a radius or tolerance, right?
@bwheeler - here is a quick and dirty python that may do the job - see how that works. (972 Bytes)

! -RunPythonScript "Full path to py file inside double quotes"

Hm - not too reliable yet… hold on a sec

@bwheeler - here’s another - it should be less sensitive to blockiness and orientation. (1.3 KB)



Yes…All the precast to precast joints on this project are 5/8", the limestone to limestone joints are 1/4". So lets say I set the tolerance to 1/8" that would pick up all the limestone that touched or was no more than 1/8" away from the selected precast panel.

My company did the limestone model and another company is doing the precast. I have imported their 3d precast model into Rhino and need an easy way to view all the limestone that will be attached to each of their precast panels.

See screen shot for an example…



Thank you for the help Pascal…I’m leaving the office now, but will check back in over the weekend.


(Pascal Golay) #8

OK - I changed out the script above - if anything it will probably over-select sometimes but on orthogonally arranged blocky things it may be ok. I’ll monkey with getting something better.



Works like a charm…Let me know the next time the kids are doing some kind of fundraiser, I’m good for a couple boxes of cookies or whatever. I can’t think you enough. I’ll be sure to brag on McNeel/Rhino when I show this off during the next GoToMeeting we have every Tuesday.

Thank You again…