mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-12-02 02:03:30 +01:00
fixed incircle test bug
This commit is contained in:
parent
d2dd39686e
commit
c3539bb10c
@ -280,7 +280,9 @@ object Util {
|
|||||||
if ((det > errbound) || (-det > errbound)) {
|
if ((det > errbound) || (-det > errbound)) {
|
||||||
return det >= 0
|
return det >= 0
|
||||||
} else {
|
} else {
|
||||||
throw new Exception("Points nearly collinear")
|
// Cheat a little bit.... we have a degenerate triangle
|
||||||
|
val d = pd * 0.1e-6f
|
||||||
|
return incircle(pa, pb, pc, d)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user