gives a mesh region representing the n-step Menger sponge.
gives the n-step Menger sponge in dimension d.
Details and Options
- MengerMesh is also known as Sierpiński carpet.
- MengerMesh[n] is generated from a unit square by repeatedly removing the middle square of the subsequent cells. »
- MengerMesh[n] is equivalent to MengerMesh[n,2].
- MengerMesh takes the same options as MeshRegion, with the following additions:
DataRange Automatic the range of mesh coordinates to generate
Examplesopen allclose all
Introduced in 2017