Use arrows to rotate the cube. Hit "see inside" to add more objects using the "Generate Cuboid" inside the forever loop.
Basically a bunch of big math, but you can just consider it magic.