Rev 17096 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 17004 | bpr | 1 | !if $wims_read_parm!=slib_header |
| 2 | !goto proc |
||
| 3 | !endif |
||
| 4 | slib_title=Patron d'un polyèdre en 3D |
||
| 5 | slib_author=Bernadette, Perrin-Riou |
||
| 17082 | bpr | 6 | slib_parms=3\ |
| 17004 | bpr | 7 | ,nom d'un polyèdre (en anglais comme dans la base dans wims)\ |
| 8 | ,arbre couvrant le définissant\ |
||
| 17096 | bpr | 9 | size=200,option as words: size=(vertical size) html show=[] id= html\ |
| 17082 | bpr | 10 | ,liste de paramètres pour le déploiement en 3D entre 0 et 1 |
| 17004 | bpr | 11 | |
| 17021 | bpr | 12 | slib_out=description comme des objets off en 3D, puis envoi à slib/geo3D/3Dviewer.\ |
| 17004 | bpr | 13 | L'arbre couvrant peut être trouvé par la slib geo2D/polynet puis geo2D/polyspantree |
| 17082 | bpr | 14 | slib_comment=Preliminary version (syntaxe can change), |
| 15 | |||
| 17079 | bpr | 16 | slib_example=cube,[3,1,6,6,1,6],size=500 html show=[,AA,FF],[0,1/5,2/5,3/5,4/5,1]\ |
| 17 | tetrahedron,[4,1,1,4],size=500 html show=[,AA,FF],[0,1/5,2/5,3/5,4/5,1]\ |
||
| 18 | dodecahedron,[8,6,7,1,10,9,2,9,11,11,12,12],bondcolor=red id=1 show=[,AA,FF],[0,1/5,2/5,3/5,4/5,1] |
||
| 17004 | bpr | 19 | |
| 20 | !exit |
||
| 21 | |||
| 22 | :proc |
||
| 23 | !reset slib_id slib_parmt slib_out slib_pouroff |
||
| 24 | !set wims_multiexec=$wims_multiexec pari |
||
| 17079 | bpr | 25 | !distribute items $wims_read_parm into slib_polname,slib_spantree,slib_optionX,slib_parmt |
| 17004 | bpr | 26 | !set slib_parmt=!declosing $slib_parmt |
| 27 | |||
| 28 | !set slib_parmtcnt=!itemcnt $slib_parmt |
||
| 29 | !set slib_spantree=!declosing $slib_spantree |
||
| 17082 | bpr | 30 | !set slib_pol=!record 0 of data/polyedre_off/$(slib_polname).off |
| 17004 | bpr | 31 | !if $slib_header_deploiement= |
| 32 | !readproc gp/deploiement.gp |
||
| 33 | !set slib_deploiment=!exec pari $slib_header_deploiement |
||
| 34 | !endif |
||
| 35 | !reset slib_outfin |
||
| 36 | |||
| 37 | !readproc slib/geo2D/polyoff |
||
| 38 | |||
| 17156 | bpr | 39 | !set slib_patron=!exec pari m=adjacence(ff); f2=depl_standard(ff,xyz);couv=[$slib_spantree]; W=etale(couv,ff,f2[1],matsize(xyz)[1]) |
| 17004 | bpr | 40 | |
| 17082 | bpr | 41 | !set slib_W1=!exec pari W[1] |
| 42 | !set slib_W2=!exec pari W[2] |
||
| 17004 | bpr | 43 | |
| 44 | !set slib_pouroff=!exec pari matconcat(W[2]~) |
||
| 17079 | bpr | 45 | !reset slib_tmpcoord |
| 17004 | bpr | 46 | !for slib_jj=1 to $slib_parmtcnt |
| 17156 | bpr | 47 | !set slib_tmp=!exec pari W3=etale3D(couv,ff,W[3],#xyz~,f2[2],$[($(slib_parmt[$slib_jj]))^(1/2)]); M=round(100*matconcat(vector(#W3,i,W3[i]~))~)/100. |
| 17004 | bpr | 48 | !set slib_taille=!exec pari [#M~,#W[2]] |
| 17079 | bpr | 49 | !set slib_tmpcoord=!append item [$slib_taille;$slib_tmp] to $slib_tmpcoord |
| 17004 | bpr | 50 | !next |
| 17079 | bpr | 51 | !readproc slib/geo3D/3Dviewer [$slib_tmpcoord;$slib_pouroff],$slib_optionX animstep=$slib_parmtcnt |
| 17004 | bpr | 52 | $slib_out |