Tag Archives: Menger sponge

Use a dictionary to draw a 3D Menger sponge fractal more efficiently using WPF, XAML, and C#

The example Draw a 3D Menger sponge fractal using WPF, XAML, and C# shows how to build a Menger sponge. That example recursively chops up cubes and discards pieces of them until it reaches a desired level of recursion. At … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Draw a 3D Menger sponge fractal using WPF, XAML, and C#

The algorithm for building a Menger sponge is simple in principle. Start with a cube. If you haven’t yet reached the desired level of recursion, divide the cube into 27 sub-cubes and discard the 7 that don’t touch any of … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , | 4 Comments