Hello,
My question is maybe naive but here it is :
How compute the whole surface of the polygon ?
Here is my code :
Public Function Compute_PolygonArea(ByVal Poly As List(Of Point)) As Double
'Geometry construction
Dim Geometry As New TriangleNet.Geometry.InputGeometry
For i As Integer = 0 To Poly.Count  1
Geometry.AddPoint(Poly(i).X, Poly(i).Y) 'Poly is created from the points of the boundary of a polygon
Next
'Mesh
Dim mesh As New Mesh
mesh.Triangulate(Geometry)
'Aera computation
Dim area As Double = 0
For Each tri In mesh.Triangles
area += tri.Area
Next
Return area
Exit Function
End Function
The goal of my work is to compute area.
The problem is that tri.Area is equal to 0.
I think I misunderstood something.
Next, I will need to add holes (smaller polygon(s) defined by a list of point inside the polygon named poly and also defined by a list of points) but I have not seen many examples on how to do this and I must say that the InputGeometry documentation did not
help me a lot. Is there any other documentation ?
Thank you very much for your help.
