* fichier : cinema1.dgibi ************************************************************************ ************************************************************************ ***** graph = 'N'; * Example of use of the cinema procedure * * A mesh is made of 4 arches: we want to pass under the 3 first arches, * go around the 4th and go under the 4 arches. ***** * P.PEGON JRC-ISPRA 01/05/95 ***** * * generation of the mesh "mesht" * p1=0 5 0; p2=0 10 0; p3=0 10 15; p4=0 -10 15; p5=0 -10 0; p6=0 -5 0; p7=0 -5 10; p8=0 5 10; * cont1=p1 d p2 d p3 d p4 d p5 d p6 d p7 d p8 d p1; * p9=5 0 0; * * mesht=mesh2 et mesh3 et mesh4 et mesh5; * * generation of the point of view trajectory (traj1) * and of the associated direction of view (dire1) * ptra1=-15 2.5 2.5; ptra2=30 2.5 2.5; ptra3=45 17.5 2.5; ptra4=60 2.5 2.5; ptra5=0 2.5 2.5; pcent=45 2.5 2.5; traj1=ptra1 d ptra2; cerc2=ptra2 pcent ptra3 c; cerc2=cerc2 pcent ptra4 c; traj3=ptra4 d pcent d ptra5; * trajt=traj1 et cerc2 et traj3; * si (j ega 1); dire1=direj; sinon; dire1=dire1 et direj; finsi; fin lab1; * * dire1=dirini et dire1; fin lab1; dire1=dire1 et dirfin; fin lab1; * * si (ega j 1); vdir1=vdirj; sinon; vdir1=vdir1 et vdirj; finsi; fin lab1; vvdir1=vecto vdir1 0.2 'UX' 'UY' 'UZ' jaun; si ( ega graph 'O'); finsi; * * call cinema * axet1=0 0 1; si ( ega graph 'O'); finsi; * * plot * * WARNING: start the animation, stop it clicking in the same place, * and resize the plot on the current frame in order to * eliminate useless details by clipping * (the dream is to exclude from the vision all what is cut) * opc12=axet1; mena; si ( ega graph 'O'); finsi; fin ;
© Cast3M 2003 - Tous droits réservés.
Mentions légales