MeshRegion¶
A region given by coordinates and the cells between them, as
ConvexHullMesh, DelaunayMesh and VoronoiMesh build it. The ordinary
region functions read it, and exact coordinates keep exact answers.
MeshCoordinates, MeshCells, MeshPrimitives and MeshCellCount read the
object itself. Cells are named by the indices of the coordinates they join,
and primitives write those coordinates out:
$ wo 'MeshCells[ConvexHullMesh[{{0, 0}, {2, 0}, {0, 2}}], 1]'
{Line[{1, 2}], Line[{2, 3}], Line[{3, 1}]}
$ wo 'MeshPrimitives[ConvexHullMesh[{{0, 0}, {2, 0}, {0, 2}}], 1]'
{Line[{{0, 0}, {2, 0}}], Line[{{2, 0}, {0, 2}}], Line[{{0, 2}, {0, 0}}]}
DelaunayMesh triangulates a point set: