X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=blobdiff_plain;f=test%2Fdelaunay.tex;h=ac45fa4e0cbc5f5960a0a9690432039551c77cec;hb=f5b04999414b0f514d2fea252417c05ac2efeeac;hp=42abe52453886a81f5308fdf8db7adba8172273b;hpb=99c7eb1c5fdd23d7617d3817806af416e4614d15;p=delaunay.git diff --git a/test/delaunay.tex b/test/delaunay.tex index 42abe52..ac45fa4 100644 --- a/test/delaunay.tex +++ b/test/delaunay.tex @@ -7,45 +7,64 @@ \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)} +\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)} -\buildMesh[tikz, bbox = show]{(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)} -\buildMesh[mode=ext]{mesh.txt} +\buildMeshBW[mode=ext]{mesh.txt} -\meshAddOnePoint[ +\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)} -\meshAddOnePoint[ +\meshAddPointBW[ 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[ +\meshAddPointBW[ meshpoint = x, colorBack=red!10, colorNew = green!20!red, scale=0.6cm, -step=newtriangles, -newpoint = y +step=badtriangles, +newpoint = y, +bbox = show ] {(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} -\multido{\ii=5+1}{3}{% - \newpage - \meshAddOnePoint[mode=ext,step=badtriangles]{mesh.txt}{\ii} - \newpage - \meshAddOnePoint[mode=ext,step=cavity]{mesh.txt}{\ii} - \newpage - \meshAddOnePoint[mode=ext,step=newtriangles]{mesh.txt}{\ii} -} +\mplibcolor\myclr{red} + +\newcommand\test{draw (0,0) -- (2cm,0) withcolor \myclr;} + +\begin{mplibcode} + beginfig(0); + %\meshAddOnePoint[picture=embedded]{(0,0);(3.5,3);(7,0);(7.5,5);(1.61,3.14);(6,4)}{(3,1)} + \test + endfig; +\end{mplibcode} +\meshAddPointBWinc[ +meshpoint = x, +colorBack=red!10, +colorNew = green!20!red, +scale=0.6cm, +step=badtriangles, +newpoint = y, +bbox = show +] +{(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}