b45f05d479e7fafce4829b77ef1d53e695b57c61
[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,bbox = show, color=red,colorBbox = blue]{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 color = green,
25 meshpoint = x,
26 colorBack=red!10,
27 colorNew = green!20!red,
28 scale=0.6cm,
29 step=cavity]
30 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
31 \meshAddPointBW[
32 meshpoint = x,
33 colorBack=red!10,
34 colorNew = green!20!red,
35 scale=0.6cm,
36 step=badtriangles,
37 newpoint = y,
38 bbox = show,
39 colorBbox = black
40 ]
41 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
42
43 \mplibcolor\myclr{red}
44
45 \newcommand\test{draw (0,0) -- (2cm,0) withcolor \myclr;}
46
47 \begin{mplibcode}
48 beginfig(0);
49 %\meshAddOnePoint[picture=embedded]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
50 \test
51 endfig;
52 \end{mplibcode}
53
54 \meshAddPointBWinc[
55 meshpoint = x,
56 colorBack=red!10,
57 colorNew = green!20!red,
58 scale=0.6cm,
59 step=badtriangles,
60 newpoint = y,
61 bbox = show,
62 colorBbox = blue!20,
63 ]
64 {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}{%
65 beginfig(0);
66 }%
67 {%
68 draw (-1,-1)*u--(8.5,-1)*u--(8.5,6)*u--(-1,6)*u--cycle;
69 endfig;
70 }
71
72
73 \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.