"Somewhere in this void, the exact grid you're imagining already exists. You just have to find it."
WASD move · Space up · Shift down · Mouse look · ESC to release
Paint the 6 unfolded faces, then summon the grid that matches your surface.