rendering the cross section of a box