MengerMesh

MengerMesh[n]

gives a mesh region representing the n^(th)-step Menger sponge.

MengerMesh[n,d]

gives the n^(th)-step Menger sponge in dimension d.

Details and Options

Examples

open allclose all

Basic Examples  (2)

A 2D Menger mesh:

In[1]:=
Click for copyable input
Out[1]=

Areas of the approximations to the Menger mesh:

In[2]:=
Click for copyable input
Out[2]=

The formula:

In[3]:=
Click for copyable input
Out[3]=

A 3D Menger mesh:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Options  (12)

Applications  (1)

Properties & Relations  (7)

Possible Issues  (1)

See Also

SierpinskiMesh  CantorMesh  ArrayMesh  MeshRegion  BoundaryMeshRegion

Introduced in 2017
(11.1)