Compute facets of a 3D surface
[xx,yy,zz]=genfac3d(x,y,z,[mask])
: :x x-axis coordinates vector of size m. : :y y-axis coordinates vector of size n. : :z matrix of size (m,n). z(i,j) is the value of the surface at the
point (x(i),y(j)).
:
genfac3d computes a four sided facets representation of a 3D surface z=f(x,y) defined by x, y and z.
t=[0:0.3:2*%pi]';
z=`sin`_(t)*`cos`_(t');
[xx,yy,zz]=genfac3d(t,t,z);
`plot3d`_(xx,yy,zz)