Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 92d439ff authored by Raphael LUZ's avatar Raphael LUZ
Browse files

Internal Release VECTO 1.1 beta 4 [FIXED]

- Fixed delaunay error
parent ca3b5453
No related branches found
Tags milestones/1.1-beta4
No related merge requests found
......@@ -48,14 +48,14 @@ Public Class cDelaunayMap
#If DEBUG Then
Debug.Print("x,y,z,x,y,z")
For Each tr In lDT
Debug.Print(tr.P1.X & "," & tr.P1.Y & "," & tr.P1.Z & "," & tr.P2.X & "," & tr.P2.Y & "," & tr.P2.Z)
Debug.Print(tr.P3.X & "," & tr.P3.Y & "," & tr.P3.Z & "," & tr.P2.X & "," & tr.P2.Y & "," & tr.P2.Z)
Debug.Print(tr.P1.X & "," & tr.P1.Y & "," & tr.P1.Z & "," & tr.P3.X & "," & tr.P3.Y & "," & tr.P3.Z)
Next
#End If
'#If DEBUG Then
' Debug.Print("x,y,z,x,y,z")
' For Each tr In lDT
' Debug.Print(tr.P1.X & "," & tr.P1.Y & "," & tr.P1.Z & "," & tr.P2.X & "," & tr.P2.Y & "," & tr.P2.Z)
' Debug.Print(tr.P3.X & "," & tr.P3.Y & "," & tr.P3.Z & "," & tr.P2.X & "," & tr.P2.Y & "," & tr.P2.Z)
' Debug.Print(tr.P1.X & "," & tr.P1.Y & "," & tr.P1.Z & "," & tr.P3.X & "," & tr.P3.Y & "," & tr.P3.Z)
' Next
'#End If
......@@ -216,7 +216,10 @@ Public Class cDelaunayMap
v = (dot00 * dot12 - dot01 * dot02) * invDenom
' Check if point is in triangle
Return (u >= 0) And (v >= 0) And (u + v <= 1)
Return (u >= 0) And (v >= 0) And (u + v <= 1.00000000001)
End Function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment