1
0
Fork 0

Maxime Guillaud:

Fix uncaught near-parallel lines in getIntersection()
This commit is contained in:
Ralf Gerlich 2009-09-24 09:41:50 +02:00
parent b0a47dfa0e
commit 255a094091

View file

@ -24,7 +24,7 @@ getIntersection (const Point3D &p0, const Point3D &p1,
const Point3D &p2, const Point3D &p3,
Point3D &intersection)
{
const double my_eps = 0.00000000000001;
const double my_eps = 1E-12;
double u_num =
((p3.x()-p2.x())*(p0.y()-p2.y()))-((p3.y()-p2.y())*(p0.x()-p2.x()));