Rectification des fichiers et de la version pour le CTAN
[delaunay.git] / luamesh-polygon.lua
index 1894b48..fd8a228 100644 (file)
@@ -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

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.