Commit 18f3945b authored by sumpfralle's avatar sumpfralle

fixed an old bug (between 0.2.5 and 0.3) in the SphericalCutter collision detection


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@751 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 046058d3
......@@ -250,7 +250,7 @@ def intersect_sphere_line(center, radius, radiussq, direction, edge):
n = n.normalized()
# calculate the distance from the sphere center to the plane
dist = - center.dot(n) - edge.p1.dot(n)
dist = - center.dot(n) + edge.p1.dot(n)
if abs(dist) > radius - epsilon:
return (None, None, INFINITE)
# this gives us the intersection circle on the sphere
......
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