fixed incircle test bug

This commit is contained in:
Mason 2009-09-05 21:27:58 -04:00
parent d2dd39686e
commit c3539bb10c
1 changed files with 3 additions and 1 deletions

View File

@ -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)
} }
} }