X-Git-Url: https://melusine.eu.org/syracuse/G/git/?p=delaunay.git;a=blobdiff_plain;f=luamesh.lua;h=b977e4ebe8b985f42264b1ffaf9c2b91904328a6;hp=de0c2742dcc55660f69975a363f9379493803853;hb=d865bd5b172801559649eabbef29fd8f3898ce70;hpb=4b4f6ae2ce34662269e37912c19c856ebf0cde17 diff --git a/luamesh.lua b/luamesh.lua index de0c274..b977e4e 100644 --- a/luamesh.lua +++ b/luamesh.lua @@ -323,6 +323,16 @@ function buildMeshMPBW(chaine,mode,points,bbox,scale) tex.sprint(output) end + +-- buildMesh with MP include code +function buildMeshMPBWinc(chaine,beginning, ending,mode,points,bbox,scale) + listPoints = buildList(chaine, mode) + triangulation = BowyerWatson(listPoints,bbox) + output = traceMeshMP(listPoints, triangulation,points) + output = "\\begin{mplibcode}u:="..scale..";"..beginning .. output .. ending .. "\\end{mplibcode}" + tex.sprint(output) +end + -- buildMesh function buildRect(largeur,a,b,nbrA, nbrB) listPoints = rectangleList(a,b,nbrA,nbrB)