Name

trisurf — Display surface defined by a triangulation

Calling Sequence

hdl = trisurf(TRI,X,Y,Z,C)

Parameter

TRI

3 by n matrix. A row of TRI contains indexes into the X,Y, and Z vertex vectors to define a single triangular face

X

1 by n matrix

Y

1 by n matrix

Z

1 by n matrix

C

1 by n matrix

hdl

Handle of the created Fac3d entity

Description

trisurf(TRI,X,Y,Z,C) displays the triangles defined in the 3-by-n face matrix TRI as a surface. A row of TRI contains indexes into the X,Y, and Z vertex vectors to define a single triangular face. The color is defined by the vector C.

trisurf(TRI,X,Y,Z) uses C = Z, so color is proportional to surface height.

trisurf(...,'param','value','param','value'...) allows additional param/value pairs to be used. See mesh, surf, surfl for the possible param/value pairs.

Examples

load(PLOTLIB+'tridem.dat');
trisurf(nodes,xy(1,:),xy(2,:),P(:,3)','facecolor','interp');
view(45,45);
colorbar bot;

Screenshot

See Also

mesh , surf , surfl

Authors

Stéphane Mottelet