[Scilab-users] Fwd: avoid auto-zoom when rotating a 3D graphic
Stéphane Mottelet
stephane.mottelet at utc.fr
Sat Jul 10 18:33:34 CEST 2021
It was before Java graphics.
S.
> Le 10 juil. 2021 à 16:38, Samuel Gougeon <sgougeon at free.fr> a écrit :
>
>
> Hello,
>
> Le 07/07/2021 à 10:09, Stéphane Mottelet a écrit :
>> Hello Philipp,
>>
>> The feature did exist until Scilab 5 family but was removed.
>>
> I have never seen this in Scilab 4, 5 or 6. 3D rotations have always been prone to some stretching of the axes in order to fill the more as possible the axes_bounds whatever are the rotation_angles, isoview and cube_scaling values.
> Could you provide a sample running on Scilab 5 and preventing this stretching?
> Thanks.
>
> Samuel
>
>
> x = [0:0.3:%pi]';
> y = [0:0.3:2*%pi];
>
> z = sin(x)*cos(y);
> [xx,yy,zz] = genfac3d(x,y,z);
> plot3d(xx,yy,zz)
>
> for iv = ["off" "on"]
> ax.isoview = iv;
> for cs = ["off" "on"]
> ax.cube_scaling = cs;
> for a = 0:3:720, ax.rotation_angles(2) = a; sleep(100); end
> end
> end
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210710/428a1a7d/attachment.htm>
More information about the users
mailing list