Skip to content

tetramesh

plot · scripts/plot/draw/tetramesh.m

: h = tetramesh (t, x)
: h = tetramesh (t, x, c)
: h = tetramesh (…, prop, val)

Plot a tetrahedral mesh.

t is an m-by-4 matrix of indices into the rows of the n-by-3 point matrix x. One patch is drawn for every tetrahedron. The optional c holds one colour value per tetrahedron (mapped through the current colormap) or a single RGB triple; by default the tetrahedra are coloured in colormap order. The column vector of patch handles is returned.