Skip to content

trisurf

plot · scripts/plot/draw/trisurf.m

: trisurf (tri, x, y, z)
: trisurf (tri, x, y, z, c)
: trisurf (tri, x, y, z, name, value)
: trisurf (t)
: trisurf (t, c)
: trisurf (ax, …)
: h = trisurf (…)

Draw a triangulated surface as one patch object.

tri is an m-by-3 matrix of vertex indices, one row per triangle; x, y, z are the vertex coordinates and the optional c the vertex colour data (default z). A triangulation structure t with the fields ConnectivityList and Points can be given instead. The patch has black edges and flat faces. The result is the patch handle.