ac45fa4e0cbc5f5960a0a9690432039551c77cec
[delaunay.git] / test / delaunay.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 \begin{document}
9
10 \buildMeshBW[print=points, meshpoint = I, color=red]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(3,1);(6,1.5)}
11
12 \buildMeshBW[tikz, bbox = show]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(3,1);(6,1.5)}
13
14 \buildMeshBW[mode=ext]{mesh.txt}
15
16 \meshAddPointBW[
17 meshpoint = x,
18 colorNew =green!20!red,
19 colorBack=red!10,
20 colorCircle = green!70,
21 scale=0.6cm]
22 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
23 \meshAddPointBW[
24 meshpoint = x,
25 colorBack=red!10,
26 colorNew = green!20!red,
27 scale=0.6cm,
28 step=cavity]
29 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
30 \meshAddPointBW[
31 meshpoint = x,
32 colorBack=red!10,
33 colorNew = green!20!red,
34 scale=0.6cm,
35 step=badtriangles,
36 newpoint = y,
37 bbox = show
38 ]
39 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
40
41 \mplibcolor\myclr{red}
42
43 \newcommand\test{draw (0,0) -- (2cm,0) withcolor \myclr;}
44
45 \begin{mplibcode}
46 beginfig(0);
47 %\meshAddOnePoint[picture=embedded]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
48 \test
49 endfig;
50 \end{mplibcode}
51
52 \meshAddPointBWinc[
53 meshpoint = x,
54 colorBack=red!10,
55 colorNew = green!20!red,
56 scale=0.6cm,
57 step=badtriangles,
58 newpoint = y,
59 bbox = show
60 ]
61 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}{%
62 beginfig(0);
63 }%
64 {%
65 draw (-1,-1)*u--(8.5,-1)*u--(8.5,6)*u--(-1,6)*u--cycle;
66 endfig;
67 }
68
69
70 \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.