Cut rectangular prism with planes parallel to faces