Create an angle on a box end

Hi,

We are just wondering how to cut an angle on the end of a box, we have a set max angle of 22.5 degrees and we want cut this along a series of boxes, as pictured. We are designing a wall for a student project with elements to be fabricated on a cnc router and what we are looking to do is create a series of angles cuts on the two outer segments but because of the fanning out of them we having trouble controlling a angle and creating a cutting logic.

File attached: Stack of sticks.gh (66.9 KB)


Any advice on how to go about this would be appreciated!

Here’s one way:

Stack of sticks_re.gh (77.6 KB)

-Kevin