pcylinder b1 4 8
psphere b2 4
ttranslate b2 0 0 8
trotate b2 0 0 8 1 0 0 90
trotate b2 0 0 8 0 0 1 270

bop b1 b2
bopfuse result

set square 351.858