* fichier : cinemb1.dgibi ************************************************************************ ************************************************************************ ***** graph = 'N'; * Example of use of the cinemb procedure * * A mesh is made of 1 arches: we want to pass under turning and rising * the head. ***** * P.PEGON JRC-ISPRA 01/10/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=6 0 0; * * generation of the point of view trajectory (traj1) * and of the associated direction of view (dire1) * and direction of head axis (axet1) * ptra1=-15 0. 0.; ptra2= 15 0. 0.; direj= ((-1)*xj) 0. 10.; * axe2j= 0. 1. 1.; alpha=xj/15.; * si (ega j 1); dire1=direj; axet1=axetj; vdir1=vdirj; vtet1=vtetj; sinon; dire1=dire1 et direj; axet1=axet1 et axetj; vdir1=vdir1 et vdirj; vtet1=vtet1 et vtetj; finsi; fin lab1; * vvdir1=vecto vdir1 1 'UX' 'UY' 'UZ' jaun; vvtet1=vecto vtet1 1 'UX' 'UY' 'UZ' vert; SI ( ega graph 'O'); * * call cinemb * * 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) * mena; si ( ega graph 'O'); finsi; fin ;
© Cast3M 2003 - Tous droits réservés.
Mentions légales