box b1 0 0 0 1 1 1
box b2 -0.5 0 0 0.5 1.7 0.5
trotate b2 0 0 0 0 0 1 -30

bop b1 b2
bopcut result

set square 5.78868
