Commit d26f3cc5 authored by sumpfralle's avatar sumpfralle

fixed another small float inaccuracy glitch


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@842 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 91668c2f
......@@ -150,7 +150,7 @@ def intersect_circle_line(center, axis, radius, radiussq, direction, edge):
(p2, l) = plane.intersect_point(direction, edge.p2)
pc = Line(p1, p2).closest_point(center)
d_sq = pc.sub(center).normsq
if d_sq > radiussq - epsilon:
if d_sq >= radiussq:
return (None, None, INFINITE)
a = sqrt(radiussq - d_sq)
d1 = p1.sub(pc).dot(d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment