CSGにより、ドアの形状を定義します。
//**********************************************************************************
#local Wf=6;
#local Door_seg =
union {
difference {
box { <-Wd,-Hi,-Dp+1>,
box { <-Wd+Wf,-Hi+Wf,-Dp-1>,
box { <-Wd+Wf,-Hi+Wf, Dp+1>,
}
box { <-Wf/2,-Hi+Wf/2,-Dp+1>,
box { <-Wf/2,-Hi+Wf/2, Dp-1>,
}
//**********************************************************************************