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