fix: include edge point in isInsideTriangle

if a point is calculated to be exactly on a triangle edge, consider it
inside the cell
This commit is contained in:
2025-05-02 14:14:26 +02:00
parent c22ae77301
commit c89f35bc6e

View File

@@ -448,8 +448,8 @@ module Util =
let d2 = sign p y z
let d3 = sign p z x
let neg = (d1 <= 0.) || (d2 <= 0.) || (d3 <= 0.)
let pos = (d1 >= 0.) || (d2 >= 0.) || (d3 >= 0.)
let neg = (d1 < 0.) || (d2 < 0.) || (d3 < 0.)
let pos = (d1 > 0.) || (d2 > 0.) || (d3 > 0.)
(neg && pos) |> not