Perturbation aléatoire des points de la grille rectangulaire pour meshPolygon, option...
[delaunay.git] / luamesh-tex.lua
index b035978..11e31a4 100644 (file)
@@ -873,10 +873,10 @@ end
 
 
 function drawMeshPolygonMP(chaine,mode,h,step,
-                             points,scale)
+                             points,scale,random)
    local polygon = buildList(chaine, mode)
    polygon = addPointsPolygon(polygon,h)
-   local grid = buildGrid(polygon,h)
+   local grid = buildGrid(polygon,h,random)
    local listPoints = addGridPoints(polygon,grid,h)
    if(step=="polygon") then
       -- the polygon
@@ -906,10 +906,10 @@ end
 
 
 function drawMeshPolygonTikZ(chaine,mode,h,step,
-                             points,scale,color,colorPoly)
+                             points,scale,color,colorPoly,random)
    local polygon = buildList(chaine, mode)
    polygon = addPointsPolygon(polygon,h)
-   local grid = buildGrid(polygon,h)
+   local grid = buildGrid(polygon,h,random)
    local listPoints = addGridPoints(polygon,grid,h)
    if(step=="polygon") then
       -- the polygon
@@ -936,10 +936,10 @@ function drawMeshPolygonTikZ(chaine,mode,h,step,
 end
 
 function drawMeshPolygonMPinc(chaine,beginning,ending,mode,h,step,
-                             points,scale)
+                             points,scale,random)
    local polygon = buildList(chaine, mode)
    polygon = addPointsPolygon(polygon,h)
-   local grid = buildGrid(polygon,h)
+   local grid = buildGrid(polygon,h,random)
    local listPoints = addGridPoints(polygon,grid,h)
    if(step=="polygon") then
       -- the polygon
@@ -968,10 +968,10 @@ end
 
 
 function drawMeshPolygonTikZinc(chaine,beginning,ending,mode,h,step,
-                             points,scale,color,colorPoly)
+                             points,scale,color,colorPoly,random)
    local polygon = buildList(chaine, mode)
    polygon = addPointsPolygon(polygon,h)
-   local grid = buildGrid(polygon,h)
+   local grid = buildGrid(polygon,h,random)
    local listPoints = addGridPoints(polygon,grid,h)
    if(step=="polygon") then
       -- the polygon

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.