pcylinder b1 1 2
box b2 -0.8 -1 0 1.6 1.8 1
trotate b2 0 0 0 0 0 1 90

bop b1 b2
bopcut result

set square 20.0274
