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=bc8f9054348ecf3c840ad5f32b56f5855cb4015d;hpb=69d738f58952eaf2e69da5817f9c7ab8c81a68c1 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