multiple peridoc support for 3D cubes and 2D boxes