Hi. First-time caller, here.

In the attached diagram, left side, pink rectangles i and ii are fixed at the given dimensions and must conform to the confines of the box beneath such that:

• point ‘a’ touches side ‘1’, point ‘b’ side ‘2’, g-3 and h–4

• points d and f remain in contact

The pink rectangles represent the top edges of 2 panels, whose third dimension is 120cm.

Finding the angle empirically would be a relatively simple matter of hinging the panels at x and opening them until they fit the defined constraints.

In Sketchup, however, it’s a tedious game of trial and error; rotating and moving and aligning by eye.

The spirograph-esque pattern on the right is the product of rotating each rectangle independently in 1º increments through its range of motion while conforming to it’s bounding-wall constraints. (tedium factor: 8)

I arrived at the hideously pink diagram by taking the two rotations whose d and f points were in closest alignment and tweaking from there. (tedium factor: 5)

How can I build this geometry quickly and with numerical precision? Plugins? Process?

(My trig and geometry games are weak)

Thanks!