4 vardef mappemonde(expr longobs,latobs)=
6 Initialisation(5,longobs,latobs,400);
7 numeric phim,phip,phii;%phi moins -- phi plus - phi intermédiaire
8 phim=Phi+arcsind(rayon/Rho)-90;
9 phip=Phi+90-arcsind(rayon/Rho);
11 pte1=rayon*(cosd(phim)*cosd(Theta),cosd(phim)*sind(Theta),sind(phim));
12 pte2=rayon*(cosd(phip)*cosd(Theta),cosd(phip)*sind(Theta),sind(phip));
14 pte4-pte3=Normal((0,0,0),pte1,pte2);
27 fill cercles(pte3,pte1,pte3,pte1,pte4) withcolor ciel;
28 Lecture("Cameriquesud.dat");
29 Lecture("Ccaraibes.dat");
30 Lecture("Cameriquecentrale.dat");
31 Lecture("Cameriquenord.dat");
33 Lecture("Ceurope.dat");
34 Lecture("Cafrique.dat");
51 drawoptions(withcolor gris);
58 draw cercles(pte3,pte1,pte3,pte1,pte4);
61 vardef Transform(expr PT)=RotY(RotX(RotZ(PT)))
66 figureespace(-7u,-7u,8u,7u);
76 fill fullcircle scaled (2*uniformdeviate(1)*mm) shifted((uniformdeviate(1))[coinbg,coinbd]+uniformdeviate(1)*(coinhg-coinbg)) withcolor jaune;
80 Initialisation(500,160,20,50);
86 rocket1=(0,4.6)--(-0.8,4.6)--(-0.85,5.6)--(-0.95,6.6)--(-1.05,7.6)--(-1.1,8.6)--(-1.2,9.6);
87 rocket2=(-1.2,9.6)--(-1.25,10.6)--(-1.3,11.6)--(-1.35,12.6)--(-1.4,13.6)--(-1.4,14.6)--(-1.375,15.6)--(-1.27,16.6)--(-1.2,17.6)--(-1.05,18.6);
88 rocket3=(-1.05,18.6)--(-0.85,19.6)--(-0.65,20.6)--(-0.35,21.6)--(-0.1,22.2)--(-0.1,23.75)--(0,23.75);
93 couleurperso="if ((tapj mod 48)=0) or ((tapj mod 48)=1) or ((tapj mod 48)=2) or ((tapj mod 48)=6) or ((tapj mod 48)=7) or ((tapj mod 48)=8) or ((tapj mod 48)=12) or ((tapj mod 48)=13) or ((tapj mod 48)=14) or ((tapj mod 48)=18) or ((tapj mod 48)=19) or ((tapj mod 48)=20) or ((tapj mod 48)=27) or ((tapj mod 48)=28) or ((tapj mod 48)=29) or ((tapj mod 48)=33) or ((tapj mod 48)=34) or ((tapj mod 48)=35) or ((tapj mod 48)=39) or ((tapj mod 48)=40) or ((tapj mod 48)=41) or ((tapj mod 48)=45) or ((tapj mod 48)=46) or ((tapj mod 48)=47):red else: white fi;";
95 ObjetAnneau1("nbp=10",rocket2);
100 ObjetAnneau2("nbp=7",rocket1);
101 ObjetAnneau3("nbp=7",rocket3);
103 amortisseur=for k=-90 step 10 until 0:(cosd(k),sind(k)+1)--endfor for k=0 step 2 until 22:(cosd(k)*11.78-10.78,11.78*sind(k)+1)-- endfor (0,5.75);
104 TR:=(0,-15,0)+(0,-5,0);
105 ObjetAnneau4("nbp=22",amortisseur);
108 TR:=(0,-15,0)+Image((0,-5,0));
109 ObjetAnneau5("nbp=22",amortisseur);
112 TR:=(0,-15,0)+Image((0,-5,0));
113 ObjetAnneau6("nbp=22",amortisseur);
114 TR:=(0,-15,0)+(0,0,0);
117 ObjetBiface7((0,-0.8,4.6),(0,-0.85,5.6),(0,-0.95,6.6),(0,-1.05,7.6),(0,-1.1,8.6),(0,-1.2,9.6),(0,-2,9.2),(0,-3,8.3),(0,-4,7.2),(0,-5,5.75),(0,-4.5765,4.6402),(0,-4.35,3.8498),(0,-4.1789,3.0456),(0,-4.0645,2.2313),(0,-4.0072,1.4111),(0,-4,1),(0,-3.2,2.2),(0,-2.5,3),(0,-1.6,4));
119 ObjetBiface8((0,-0.8,4.6),(0,-0.85,5.6),(0,-0.95,6.6),(0,-1.05,7.6),(0,-1.1,8.6),(0,-1.2,9.6),(0,-2,9.2),(0,-3,8.3),(0,-4,7.2),(0,-5,5.75),(0,-4.5765,4.6402),(0,-4.35,3.8498),(0,-4.1789,3.0456),(0,-4.0645,2.2313),(0,-4.0072,1.4111),(0,-4,1),(0,-3.2,2.2),(0,-2.5,3),(0,-1.6,4));
121 ObjetBiface9((0,-0.8,4.6),(0,-0.85,5.6),(0,-0.95,6.6),(0,-1.05,7.6),(0,-1.1,8.6),(0,-1.2,9.6),(0,-2,9.2),(0,-3,8.3),(0,-4,7.2),(0,-5,5.75),(0,-4.5765,4.6402),(0,-4.35,3.8498),(0,-4.1789,3.0456),(0,-4.0645,2.2313),(0,-4.0072,1.4111),(0,-4,1),(0,-3.2,2.2),(0,-2.5,3),(0,-1.6,4));