Populating brep inside brep, and testing all possible enclosure possibilities


I am trying to make a definition to help me locating product placement possibilities inside different boxes.
The products vary in size and shape, and the boxes as well - so I am trying to keep the code as flexible as possible.

I tried to populate possible iterations and than cull the ones that do not fit enclosure definition, but im having data manipulation problems, as I do not understand how to select branches with specific definitions - in my case, all “true” values.

Im adding my code and a screenshot. any help will be fantastic! I feel as Im missing something simple

product placement inside box.gh (18.9 KB)

Like this?

product placement inside box_re.gh (29.6 KB)

Yes! creative stuff. thanks a lot mate