In Larry Wang's answer to this question, "Why is the volume of a cone one third of the volume of a cylinder?", the nice animation shows that the volume of a square-based pyramid that fits just inside a cube has $1/3$ the volume of the cube. Now, looking at the light blue pyramid in the animation for example, you can look at the front and plan views of a horizontal cross-section of the pyramid and using similar triangles/proportional lengths of parallel sides, be convinced with Cavalieri's principle, that the apex of the light blue pyramid can be moved around on the upper face of the cube without changing the volume of the pyramid.
However, all this shows is that the volume of any square-based pyramid that fits just inside a cube has $1/3$ the volume of the cube. This does not show that the volume of any square-based pyramid that fits just inside a cuboid with a square face has $1/3$ the volume of the cuboid. So the proof with the cone only works for height $h = r\sqrt\pi$ right?