[scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting

Stéphane Mottelet stephane.mottelet at utc.fr
Fri Nov 26 08:41:40 CET 2010


Le 26/11/2010 06:54, Sam Mathew a écrit :
> Hi everyone,
>
> Is it possible to save the spherical coordinates of the view 
> {a.rotation_angles = [alpha,theta]} for a given view that we pivot the 
> 3D plot to (using the in-built rotate icon available on the display 
> window)? The basic problem is that I do not yet understand the 
> convention used in SCILAB for azimuthal and inclination angles, and 
> therefore am struggling to get images with the same view applied on 
> several 3D plots.
>
> Also, I wanted to be able to see the crests and troughs of the 
> surfaces generated by my function. The grid lines on the surface are 
> surely helpful in this regard but since I have too many data points, 
> the lines actually make my surfaces look quite dark. I found out the 
> way with applying appropriate flags for getting rid of the lines on 
> the surfaces so that you get a surface with a constant colour. But I 
> am not able to see the crests and troughs of the graph then. I know 
> from some CAD experience that lighting would solve the problem. Any 
> suggestion how one can position the lights on the surfaces? Any other 
> way for reducing the number of grid lines on the surface?
>
> Thanks for your time.
>
> Regards,
>
> Sam
>
> -- 
>
> Asst. Manager, CFD
> Centre for Computational Technologies
> www.cctech.co.in <http://www.cctech.co.in>
> Phone: +91 20 2552 1873
Hi,

the plotlib module (available thru the Atoms module manager) allows
to plot a surface with lighting (surfl and trisurfl functions). You can 
choose
the direction of the light source, so this should solve your problem.

Concerning your problem with view angles, the problem is that even if you
force the view angles to be the same, you should also force the axis limits
to have an equivalent view.


S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20101126/fa02eebb/attachment.htm>


More information about the users mailing list