Code development platform for open source projects from the European Union institutions

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
No related tags found
No related merge requests found
...@@ -48,14 +48,14 @@ Public Class cDelaunayMap ...@@ -48,14 +48,14 @@ Public Class cDelaunayMap
#If DEBUG Then '#If DEBUG Then
Debug.Print("x,y,z,x,y,z") ' Debug.Print("x,y,z,x,y,z")
For Each tr In lDT ' 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.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.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) ' Debug.Print(tr.P1.X & "," & tr.P1.Y & "," & tr.P1.Z & "," & tr.P3.X & "," & tr.P3.Y & "," & tr.P3.Z)
Next ' Next
#End If '#End If
...@@ -216,7 +216,10 @@ Public Class cDelaunayMap ...@@ -216,7 +216,10 @@ Public Class cDelaunayMap
v = (dot00 * dot12 - dot01 * dot02) * invDenom v = (dot00 * dot12 - dot01 * dot02) * invDenom
' Check if point is in triangle ' 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 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