plot3d2 - plot surface defined by rectangular facets
Note that the surface color treatement can be done using color_mode and color_flag options through the surface entity properties (see surface_properties ).
Note that axes boundaries can be customized through the axes entity properties (see axes_properties ).
Note that axes aspect can also be customized through the axes entity properties (see axes_properties ).
Note that, when specified, the ebox argument acts on the data_bounds field that can also be reset through the axes entity properties (see axes_properties ).
plot3d2 plots a surface defined by rectangular facets. (X,Y,Z) are three matrices which describe a surface. The surface is composed of four sided polygons. The X-coordinates of a facet are given by X(i,j),X(i+1,j),X(i,j+1),X(i+1,j+1). And similarly Y and Z are Y and Z coordinates. The vect vector is used when multiple surfaces are coded in the same (X,Y,Z) matrices. vect(j) gives the line at which the coding of the jth surface begins. Like in plot3d , the same properties are editable (see surface_properties and axes_properties ).
u = linspace(-%pi/2,%pi/2,40); v = linspace(0,2*%pi,20); X = cos(u)'*cos(v); Y = cos(u)'*sin(v); Z = sin(u)'*ones(v); plot3d2(X,Y,Z); // New Graphic mode only e=gce(); e.color_mode=4; // change color f=e.data; TL = tlist(["3d" "x" "y" "z" "color"],f.x,f.y,f.z,10*(f.z)+1); e.data=TL; e.color_flag=2;