Anybody have experience with collision avoidance in dynamo?

I’m working on a foundation with a ton of interweaved rebar and tendons. I’ve a got a proof of concept that step places rebar one at a time only where it will fit. But before I go much further, I was hoping some other structural guys have already worked on similar concepts. If you could point me towards any tutorials or packages that helped it would be much appreciated.

Here is a screencap of the proof of concept, but I had to run the script once per bar. I was hoping for a one click solution

Bimorph nodes has fast intersection tests that could help.