Wood nest-like structure from randomly oriented elements

Hello, I am looking to create something similar to this - a buildable chaotic-looking structure out of simple elements with no cuts made in wood planks, so they should not intersect each other.

My definition has 3 base surfaces and a randomly rotated SDL lines. The tricky part is selecting non-intersecting ones, the closest way I have found is to use anemone and it is pretty much doing what I want, but I need to control the selection somehow differently (or orient them less randomly), because result has a lot of hanging parts that have only one intersection with the rest of the structure (3 layers of stick shown in the image). If I filter them out too, there won’t be a sufficient amount of elements to form a structure.

MUSIC ZONE PATTERN.gh (29.6 KB)

I would try something like this

This is the amount of curves left. This is the reason for using Anemone, I cannot just cull all intersections. The goal is to curate curve list quite evenly so that after final cleanup for 3d intersection sufficient amount of curves will be left.

Research into wasp. I think it will solve your intentions 100%.
https://www.food4rhino.com/en/app/wasp

Maybe OpenNest could be useful.

ok maybe I understand a little more. I would do this:
for each loop, cull the line with the most intersections, and stop when you reach your limit.
MUSIC ZONE PATTERN.gh (46.0 KB)
how the lines are generated in the first place is another matter