X-Git-Url: https://melusine.eu.org/syracuse/G/git/?p=delaunay.git;a=blobdiff_plain;f=luamesh-polygon.lua;h=fd8a228aa3efdd9884cff4f9d7297a89a4dada7f;hp=1894b4804aea85278ba46190a2d222f63a6c9f99;hb=HEAD;hpb=fe3a5df51411d6ea20f72115641db9bc7d19a466 diff --git a/luamesh-polygon.lua b/luamesh-polygon.lua index 1894b48..fd8a228 100644 --- a/luamesh-polygon.lua +++ b/luamesh-polygon.lua @@ -58,7 +58,7 @@ end function isInside(listPoints,p,h) -- if the point is to close to a point of the polygon for i=1,#listPoints do - if(math.sqrt(math.pow(p.x-listPoints[i].x,2) + math.pow(p.y-listPoints[i].y,2))<0.5*h) then + if(math.sqrt(math.pow(p.x-listPoints[i].x,2) + math.pow(p.y-listPoints[i].y,2))<0.4*h) then return false end end