[Scilab-users] Using uimenue to change rotation_angles

Jens Simon Strom j.s.strom at hslmg.de
Sun Dec 18 11:36:13 CET 2016


Hi,
I try to use uimenue() in a minimal example to toggle the aspect of a 3D 
curve between two values - without succes.
Here is my defective script.

//BEGIN OF UNFUNCTIONAL CODE
xdel()
figure(1)
param3d([0 1 1 1],[0 0 1 1],[0 0 0 1]); ce=gce(); ce.thickness=10;
ca=gca();
alpha=ca.rotation_angles(1);//initial alpha
   uimenu('label', 'alpha=0', 'callback',"alpha=70");
   uimenu('label', 'alpha=90', 'callback',"alpha=10");
   uimenu('label', 'break', 'callback',"break");
while 1
   xclick()  //to interrupt script, enable click on label, and restart
   ca.rotation_angles(1)=alpha;
   disp(alpha)
end
//END OF UNFUNCTIONAL CODE

Please give me a clue for a feasible route.

Kind regards
Jens


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161218/39bda728/attachment.htm>


More information about the users mailing list