1 \documentclass{article
}
2 %% compiler avec lualatex
3 \usepackage[margin=
2.5cm
]{geometry
}
13 \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)
}
15 %\buildMeshBW[tikz, bbox = show]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(3,1);(6,1.5)}
17 \buildMeshBW[mode=ext,bbox = show,
color=red,colorBbox = blue,print=dotpoints
]{mesh.txt
}
19 \drawPointsMesh[mode=ext,bbox = show,
color=red,print=points
]{mesh.txt
}
21 \drawPointsMesh[mode=ext,bbox = show,
color=red
]{mesh.txt
}
24 \buildMeshBWinc[mode=ext,bbox = show,
color=red,colorBbox = blue
]{mesh.txt
}{%
28 draw MeshPoints
[3] -- MeshPoints
[9];
34 colorNew =green!
20!red,
36 colorCircle = green!
70,
38 {(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}
43 colorNew = green!
20!red,
46 {(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}
50 colorNew = green!
20!red,
57 {(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}
59 \mplibcolor\myclr{red
}
61 \newcommand\test{draw (
0,
0) -- (
2cm,
0) withcolor
\myclr;
}
65 %\meshAddOnePoint[picture=embedded]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}
73 colorNew = green!
20!red,
80 {(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}{%
84 draw (-
1,-
1)*u--(
8.5,-
1)*u--(
8.5,
6)*u--(-
1,
6)*u--cycle withcolor
\mpcolor{red
};
91 \buildMeshBW[tikz,print=points, meshpoint = I,
92 color=red
]{(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
3,
1);(
6,
1.5)
}
94 \buildMeshBW[tikz,mode=ext,
color=red,print=dotpoints
]{mesh.txt
}
96 \drawPointsMesh[tikz,mode=ext,bbox = show,
97 color=red,print=points
]{mesh.txt
}
98 \drawPointsMesh[tikz,mode=ext,bbox = show,
color=red
]{mesh.txt
}
100 \buildMeshBWinc[tikz,mode=ext,bbox = show, colorBbox = blue
]{mesh.txt
}{%
103 \draw[color = red
] (
0,
0) -- (
3,
3);
111 colorNew = green!
20!red,
114 {(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}
120 colorNew = green!
20!red,
126 ]{(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}
127 {}{\draw[color=green
] (
0,
0) -- (
3,
3);
}
133 colorNew = green!
20!red,
140 {(
0,
0);(
3.5,
3);(
7,
0);(
7.5,
5);(
1.61,
3.14);(
6,
4)
}{(
3,
1)
}
143 % \def\CircumPoint{y}
146 % buildVoronoiMP("mesh.txt","ext","points","","1cm","show")
148 \buildVoronoiBW[mode=ext
]{mesh.txt
}
149 \buildVoronoiBW[mode=ext,delaunay=show,colorVoronoi=green!
60!blue
]{mesh.txt
}\par
150 \buildVoronoiBW[mode=ext,print=points,delaunay=show,bbox=show,meshpoint=x,circumpoint=y
]{mesh.txt
}
153 \buildVoronoiBW[tikz,mode=ext
]{mesh.txt
}
154 \buildVoronoiBW[tikz,mode=ext,delaunay=show,colorVoronoi=green!
60!blue
]{mesh.txt
}\par
155 \buildVoronoiBW[tikz,mode=ext,print=points,delaunay=show,bbox=show,meshpoint=x,circumpoint=y
]{mesh.txt
}
157 \buildVoronoiBWinc[mode=ext
]{mesh.txt
}{beginfig(
0);
}{endfig;
}
158 \buildVoronoiBWinc[tikz,mode=ext,print=points
]{mesh.txt
}{}{}
161 \buildVoronoiBWinc[tikz,mode=ext,print=points,delaunay=show,meshpoint=x,circumpoint=y
]{mesh.txt
}{}{\draw[color=blue,thick
] (
0,
0)--(
3,
3);
}
165 drawGmshMP("maillage.msh","points","8cm")
168 gmshVoronoiMP("maillage.msh","none","8cm","none")
171 \drawGmsh[tikz,scale=
8cm
]{maillage.msh
}
173 \gmshVoronoi[tikz,scale=
8cm,print=points,delaunay=show
]{maillage.msh
}
176 \meshPolygon[step=polygon,scale=
3cm
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
177 \meshPolygon[step=grid,scale=
3cm
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
178 \meshPolygon[step=points,scale=
3cm,print=points
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
179 \meshPolygon[step=mesh,scale=
3cm,print=dotpoints,gridpoints=perturb
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
181 \meshPolygon[tikz,step=polygon,scale=
3cm
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
182 \meshPolygon[tikz,step=grid,scale=
3cm
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
183 \meshPolygon[tikz,step=points,scale=
3cm,print=points
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
184 \meshPolygon[tikz,step=mesh,scale=
3cm,print=dotpoints
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}
186 \meshPolygonInc[step=points,scale=
3cm,print=dotpoints
]{(
0,
0);(
1,
0);(
1,
0.5);(
0.5,
1);(-
0.3,
0.3)
}{%