Skip to content

trimesh

plot · scripts/plot/draw/trimesh.m

: h = trimesh (tri, x, y, z)
: h = trimesh (tri, x, y)
: h = trimesh (tri, x, y, z, c)
: h = trimesh (…, prop, val)

Plot a triangular mesh as a wireframe.

tri is an m-by-3 matrix of vertex indices into the vectors x, y and z. When z is omitted the mesh lies in the plane z = 0. The optional vector c supplies one colour value per vertex; by default the height z is used. The patch handle is returned.