1
genfac3d Scilab Group Scilab Function genfac3d
3
genfac3d - compute facets of a 3D surface
6
[xx,yy,zz]=genfac3d(x,y,z,[mask])
8
xx,yy,zz : matrices of size (4,n-1xm-1). xx(:,i) ,yy(:,i) and zz(:,i)
9
are respectively the x-axis, y-axis and z-axis coordinates of
10
the 4 points of the ith four sided facet.
12
x : x-axis coordinates vector of size m.
14
y : y-axis coordinates vector of size n.
16
z : matrix of size (m,n). z(i,j) is the value of the surface at
17
the point (x(i),y(j)).
19
mask : boolean optional matrix with same size as z used to select
20
the entries of z to be represented by facets.
23
genfac3d computes a four sided facets representation of a 3D surface
24
z=f(x,y) defined by x, y and z.
27
t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
28
[xx,yy,zz]=genfac3d(t,t,z);