\mplibcolor, nom de couleurs dans les fonctions, renommage de fonction (côté MP)...
[delaunay.git] / test / animation.tex
index bad690b..b3d33a7 100644 (file)
 
 \multido{\ii=5+1}{3}{%
   \newpage
-  \meshAddOnePoint[mode=ext,step=badtriangles,
+  \meshAddPointBWinc[
+  mode=ext,step=badtriangles,
   colorNew =green!20!red,
   colorBack=red!10,
   colorCircle = blue,
-  ]{mesh.txt}{\ii}
-  \newpage
-  \meshAddOnePoint[mode=ext,step=cavity,
+  ]
+  {mesh.txt}{\ii}%
+  {%
+    beginfig(0);
+  }%
+  {%
+    draw (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle withcolor 0.99white;
+    clip currentpicture to (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle;
+    endfig;
+  }  \newpage
+  \meshAddPointBWinc[
+  mode=ext,step=cavity,
   colorNew =green!20!red,
   colorBack=red!10,
   colorCircle = blue,
-  ]{mesh.txt}{\ii}
-  \newpage
-  \meshAddOnePoint[mode=ext,step=newtriangles,
+  ]
+  {mesh.txt}{\ii}%
+  {%
+    beginfig(0);
+  }%
+  {%
+    draw (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle withcolor 0.99white;
+    clip currentpicture to (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle;
+    endfig;
+  }  \newpage
+  \meshAddPointBWinc[
+  mode=ext,step=newtriangles,
   colorNew =green!20!red,
   colorBack=red!10,
   colorCircle = blue,
-  ]{mesh.txt}{\ii}
+  ]
+  {mesh.txt}{\ii}%
+  {%
+    beginfig(0);
+  }%
+  {%
+    draw (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle withcolor 0.99white;
+    clip currentpicture to (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle;
+    endfig;
+  }
 }
 
-\newpage
-
-\buildMesh[mode=ext,print=points]{mesh.txt}
 
 
 \end{document}

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.