Name

trisurfl — Display surface defined by a triangulation with lighting

Calling Sequence

hdl = trisurfl(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

trisurfl(TRI,X,Y,Z) displays the n 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 default light direction is the vector [-1 -1 -1]. See the surfl function for other possible settings.

Examples

load(PLOTLIB+'dinosaure.dat')
colormap green;
trisurfl(nodes,x,y,z);
axis equal;
shading interp;
view([-45 30]);

Screenshot

See Also

surfl

Authors

Stéphane Mottelet