Thanks!, just one question, why can you do the ratio I had before for a cylinder, but not for a cube

The cross-section of a cylinder is a circle. The cross-section of a cube is a square. The distance from the centre of a circle to any point on the perimeter is always the same. This is not the case for a square.