mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-30 01: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)) {
|
||||
return det >= 0
|
||||
} 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