Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Menger Sponge

Public visualization

Viewing a saved revision (read-only)

8d529d0b2ee14b0abdb69463ad63b55f

Menger Sponge

0 stars0🌍 Public
CCurran Kelleher
Last edited Jul 9, 2025
Created on Mar 29, 2025
Forked from 3D Cube of Spheres

This interactive visualization renders a level 3 Menger Sponge fractal, a 3D shape formed by recursively removing the center cube from each face and the central cube of the remaining structure. The sponge is built with Three.js, using recursive grouping and `BoxGeometry` meshes with `MeshPhongMaterial` shading. The scene includes multiple lighting sources—ambient, directional, hemisphere, and point lights—to highlight the fractal’s deepening cavities. The model slowly rotates via an animation loop, while `OrbitControls` allow the user to rotate, pan, and zoom the view.

AI-generated description