X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=blobdiff_plain;f=test%2Fdelaunay.tex;h=b45f05d479e7fafce4829b77ef1d53e695b57c61;hb=4b4f6ae2ce34662269e37912c19c856ebf0cde17;hp=b7a5011121b62d987845f5cb751373bd14da15b7;hpb=5d563ad5ea0e2ca2074f5262b69f24f7fc91f211;p=delaunay.git diff --git a/test/delaunay.tex b/test/delaunay.tex index b7a5011..b45f05d 100644 --- a/test/delaunay.tex +++ b/test/delaunay.tex @@ -7,34 +7,36 @@ \pagestyle{empty} \begin{document} -% \buildMesh[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)} - -% \buildMesh[tikz, bbox = show]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(3,1);(6,1.5)} - -% \buildMesh[mode=ext]{mesh.txt} - -% \meshAddOnePoint[ -% meshpoint = x, -% colorNew =green!20!red, -% colorBack=red!10, -% colorCircle = green!70, -% scale=0.6cm] -% {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} -% \meshAddOnePoint[ -% meshpoint = x, -% colorBack=red!10, -% colorNew = green!20!red, -% scale=0.6cm, -% step=cavity] -% {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} -\meshAddOnePoint[ +\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)} + +%\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} + +\meshAddPointBW[ +meshpoint = x, +colorNew =green!20!red, +colorBack=red!10, +colorCircle = green!70, +scale=0.6cm] +{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} +\meshAddPointBW[ +color = green, +meshpoint = x, +colorBack=red!10, +colorNew = green!20!red, +scale=0.6cm, +step=cavity] +{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} +\meshAddPointBW[ meshpoint = x, colorBack=red!10, colorNew = green!20!red, scale=0.6cm, step=badtriangles, newpoint = y, -bbox = show +bbox = show, +colorBbox = black ] {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} @@ -49,5 +51,23 @@ bbox = show endfig; \end{mplibcode} +\meshAddPointBWinc[ +meshpoint = x, +colorBack=red!10, +colorNew = green!20!red, +scale=0.6cm, +step=badtriangles, +newpoint = y, +bbox = show, +colorBbox = blue!20, +] +{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)}{% +beginfig(0); +}% +{% + draw (-1,-1)*u--(8.5,-1)*u--(8.5,6)*u--(-1,6)*u--cycle; +endfig; +} + \end{document}