From: s s on
hi there

i have a 3d patch object.

it is possible to reverses the z axis. (that basically turns the object upside down in the plot. is that inversion in the plot only ?)

could there be a way to ensure that the object is still erect and the global co-ordinates or the z axis is reversed. that is to say, the object is erect but the z axis reads from top to bottom in increasing order ?

sharad
From: Wayne King on
"s s" <sharad(a)care.iitd.ac.in> wrote in message <hm09t5$6q5$1(a)fred.mathworks.com>...
> hi there
>
> i have a 3d patch object.
>
> it is possible to reverses the z axis. (that basically turns the object upside down in the plot. is that inversion in the plot only ?)
>
> could there be a way to ensure that the object is still erect and the global co-ordinates or the z axis is reversed. that is to say, the object is erect but the z axis reads from top to bottom in increasing order ?
>
> sharad
Hi Sharad, will

X = [0 1 1 2;1 1 2 2;0 0 1 1];
Y = [1 1 1 1;1 0 1 0;0 0 0 0];
Z = [1 1 1 1;1 0 1 0;0 0 0 0];
C = [0.5000 1.0000 1.0000 0.5000;
1.0000 0.5000 0.5000 0.1667;
0.3330 0.3330 0.5000 0.5000];
fill3(X,Y,Z,C)
H = gca;
set(H,'Zdir','reverse');

work for you? That reverses the direction of the Z-axis.

Wayne
 | 
Pages: 1
Prev: flip Z axis in plot3 function
Next: Matlab + C#