3 listPoints = {{x=0, y=0},{x=1,y=1},{x=1.7,y=0.8},{x=0.6, y=2},{x=3,y=0},{x=1.9,y=2.7}}
4 print("list of Points")
7 print(listPoints[i].x,listPoints[i].y)
10 triangulation = BowyerWatson(listPoints, "")
11 print("triangualiton")
12 for i=1,#triangulation do
13 print(triangulation[i][1],triangulation[i][2],triangulation[i][3])
16 listVoronoi = buildVoronoi(listPoints, triangulation)
18 for i=1,#listVoronoi do
19 print(listVoronoi[i][1],listVoronoi[i][2])
22 listPoints, triangulation = readGmsh("maillage.msh")
23 print(#listPoints,#triangulation)
24 print(listPoints[2].x)
26 listPoints = {{x=0, y=0},{x=1,y=0},{x=1,y=0.5},{x=0.5, y=1},{x=-0.3,y=0.3}}
30 print(isInside(listPoints,q))
32 grid = buildGrid(listPoints,0.1)
35 -- print(grid[i].x,grid[i].y)
38 listNew = addGridPoints(listPoints,grid)
41 print(listNew[i].x, listNew[i].y)
44 print(#grid, #listNew)