Name

trimesh — Display surface mesh defined by a triangulation

Calling Sequence

hdl = trimesh(TRI,X,Y,Z)

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

hdl

Handle of the created Fac3d entity

Description

trimesh(TRI,X,Y,Z) displays the triangles defined in the 3-by-n face matrix TRI as a mesh. A row of TRI contains indexes into the X,Y, and Z vertex vectors to define a single triangular face.

See mesh for other possible settings.

Examples

load(PLOTLIB+'tridem.dat')
trimesh(nodes,xy(1,:),xy(2,:),P(:,2)','edgecolor','blue')
hidden off

Screenshot

See Also

mesh

Authors

Stéphane Mottelet