Searching Faster Way to Union Boxes

Hi everyone I need some help for make this code faster for optimization in galapagos with this system it took 1.2m to union for this reason the solar radiation tool work in 25 second i need faster way thank for your helps in advance.



apartman code 3 KISA.gh (350.9 KB)

Shrinkwrap depending on what you’re trying to achieve…

This code is a complete mess :bangbang: :frowning:

In R7, I don’t see the extreme profiler times. The second SUnion does nothing :interrobang:

When I unflatten its input, I see the same results as the first, perhaps because they don’t touch?

:man_facepalming:

P.S. This is R8: