A cube can be cut with a hole large enough for an identical cube to pass through it β a classic geometry result called Prince Rupert's Cube. Model the cube's rotated cross-section to find the largest square hole it creates.
Start here β this is the source that inspired this exploration.
Prince Rupert's Cube is the geometric fact that a hole can be cut through a cube large enough for a second, equally-sized cube to pass through it. The key is projection: as the cube is tilted and rotated, its 2D outline (the shadow it casts, or the cross-section a flat template would need to match) changes shape and size continuously. At certain orientations, that outline is larger than the cube's own face. This exploration models the cube's 2D outline as a function of its rotation angle, to find the orientation that produces the largest possible square cross-section, and how large a hole it allows.