Menger Sponge

๐Ÿ”— Code Example: Menger Sponge

๐Ÿ”— Timestamps:

  • 1:24 Step 1: Begin with a cube

  • 2:13 Step 2: Cut a cube into 27 little cubes

  • 5:35 Step 3: Cut out the core on all three sides

  • 7:20 Step 4: Repeat Step 1 and 2 using recursion

Previous

Sierpiล„ski Triangle

Next

Spherical Cube