Wolfram: Mesh Region

By Xah Lee. Date: . Last updated: .

xtodo work in progress

Mesh

Mesh is a efficient data structure that represent a 2D surface by triangles. e.g. 3D wireframe models.

Example of Use of Mesh

MeshRegion and BoundaryMeshRegion

Mesh in Wolfram language is MeshRegion and BoundaryMeshRegion. They represent generalized mesh, of arbitrary dimensions. In general, it represent manifold by simplexes.

About MeshRegion

About BoundaryMeshRegion

BoundaryMeshRegion is a special case of MeshRegion, in that it represent a enclosed space. It always has an area or volume.

xtodo

MeshRegion

a mesh as the disjoint union of cells

BoundaryMeshRegion

boundary mesh represents a enclosed region. e.g. area or volume.

Convert Graphics to Mesh (Discretize Graphics)

BoundaryDiscretizeGraphics[Graphics3D[{Torus[]}]]
wl sphere 2025-07-01 18dc4
wl sphere 2025-07-01 18dc4
BoundaryDiscretizeGraphics[Graphics3D[{Sphere[]}]]
wl torus 2025-07-01 18dcf
wl torus 2025-07-01 18dcf
xx = DiscretizeGraphics[Rectangle[{0,0},{2,1}], MaxCellMeasure -> 0.01, Axes -> True]

DiscretizeRegion

wl DiscretizeRegion 2025-07-01 14efc
wl DiscretizeRegion 2025-07-01 14efc
DiscretizeRegion[Disk[], Axes -> True]
DiscretizeRegion[Disk[], MaxCellMeasure -> 0.1, Axes -> True]

BoundaryDiscretizeRegion

Convert Mesh Object to Graphics Primitives

use MeshPrimitives to turn a mesh to list of Graphics Primitive.

Wolfram. Graphics Programing