Students move from 2D to 3D geometry by deriving the space diagonal formula for cubes and rectangular prisms using the Pythagorean theorem. The lesson includes a video-based derivation for cubes and a workshop where students generalize the formula for any rectangular prism.