b3d33a749db4684c8219314be844abefd1e95239
[delaunay.git] / test / animation.tex
1 \documentclass{article}
2 %% compiler avec lualatex
3 \usepackage[margin=2.5cm]{geometry}
4 \usepackage{luamesh}
5 \usepackage{fontspec}
6 \usepackage{multido}
7 \pagestyle{empty}
8
9
10 \begin{document}
11
12 \multido{\ii=5+1}{3}{%
13 \newpage
14 \meshAddPointBWinc[
15 mode=ext,step=badtriangles,
16 colorNew =green!20!red,
17 colorBack=red!10,
18 colorCircle = blue,
19 ]
20 {mesh.txt}{\ii}%
21 {%
22 beginfig(0);
23 }%
24 {%
25 draw (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle withcolor 0.99white;
26 clip currentpicture to (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle;
27 endfig;
28 } \newpage
29 \meshAddPointBWinc[
30 mode=ext,step=cavity,
31 colorNew =green!20!red,
32 colorBack=red!10,
33 colorCircle = blue,
34 ]
35 {mesh.txt}{\ii}%
36 {%
37 beginfig(0);
38 }%
39 {%
40 draw (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle withcolor 0.99white;
41 clip currentpicture to (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle;
42 endfig;
43 } \newpage
44 \meshAddPointBWinc[
45 mode=ext,step=newtriangles,
46 colorNew =green!20!red,
47 colorBack=red!10,
48 colorCircle = blue,
49 ]
50 {mesh.txt}{\ii}%
51 {%
52 beginfig(0);
53 }%
54 {%
55 draw (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle withcolor 0.99white;
56 clip currentpicture to (-1,-1)*u--(7.5,-1)*u--(7.5,5)*u--(-1,5)*u--cycle;
57 endfig;
58 }
59 }
60
61
62
63 \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.