WolframLang: Mesh Region

By Xah Lee. Date: .

Mesh

Mesh is a efficient data structure that represent a surface, solid, or region, by triangles (aka simplexes). e.g. 3D wireframe models.

For example, a line is given by 2 end points. But you might need to apply a transformation function to deform it. You need to break the line into tiny segments so the function can be applied to the points on the line.

another example, Sphere represent a sphere of a given center and radius, but often you want to represent it as mesh of triangles, so that you can operate on the surface.

Convert Graphics to Mesh (Discretize Graphics)

Convert Mesh Object to Graphics Primitives

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

WolframLang, Graphics Programing