meshPolygon avec TikZ et ajout dotpoints comme option à tracePoints(TikZ et MP)
[delaunay.git] / test / delaunay.tex
index 0c8352e..44965e4 100644 (file)
@@ -14,7 +14,7 @@
 
 %\buildMeshBW[tikz, bbox = show]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(3,1);(6,1.5)}
 
-\buildMeshBW[mode=ext,bbox = show, color=red,colorBbox = blue]{mesh.txt}
+\buildMeshBW[mode=ext,bbox = show, color=red,colorBbox = blue,print=dotpoints]{mesh.txt}
 
 \drawPointsMesh[mode=ext,bbox = show, color=red,print=points]{mesh.txt}
 
@@ -91,7 +91,7 @@ endfig;
 \buildMeshBW[tikz,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)}
 
-\buildMeshBW[tikz,mode=ext, color=red]{mesh.txt}
+\buildMeshBW[tikz,mode=ext, color=red,print=dotpoints]{mesh.txt}
 
 \drawPointsMesh[tikz,mode=ext,bbox = show,
 color=red,print=points]{mesh.txt}
@@ -155,9 +155,31 @@ colorBbox = black
 \buildVoronoiBW[tikz,mode=ext,print=points,delaunay=show,bbox=show,meshpoint=x,circumpoint=y]{mesh.txt}
 
 \buildVoronoiBWinc[mode=ext]{mesh.txt}{beginfig(0);}{endfig;}
-\buildVoronoiBWinc[tikz,mode=ext]{mesh.txt}{}{}
+\buildVoronoiBWinc[tikz,mode=ext,print=points]{mesh.txt}{}{}
 
 
 \buildVoronoiBWinc[tikz,mode=ext,print=points,delaunay=show,meshpoint=x,circumpoint=y]{mesh.txt}{}{\draw[color=blue,thick] (0,0)--(3,3);}
 
+\def\MeshPoints{P}
+\directlua{
+  drawGmshMP("maillage.msh","points","8cm")
+}\par
+\directlua{
+  gmshVoronoiMP("maillage.msh","none","8cm","none")
+}
+
+\drawGmsh[tikz,scale=8cm]{maillage.msh}
+
+\gmshVoronoi[tikz,scale=8cm,print=points,delaunay=show]{maillage.msh}
+
+
+\meshPolygon[step=polygon,scale=3cm]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+\meshPolygon[step=grid,scale=3cm]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+\meshPolygon[step=points,scale=3cm,print=points]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+\meshPolygon[step=mesh,scale=3cm,print=dotpoints]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+
+\meshPolygon[tikz,step=polygon,scale=3cm]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+\meshPolygon[tikz,step=grid,scale=3cm]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+\meshPolygon[tikz,step=points,scale=3cm,print=points]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
+\meshPolygon[tikz,step=mesh,scale=3cm,print=dotpoints]{(0,0);(1,0);(1,0.5);(0.5,1);(-0.3,0.3)}
 \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.