Commit 049b63dd authored by Lars Kruse's avatar Lars Kruse

fixed remainder of Point->PointUtils conversion

Just one varible name was used improperly. This broke the "waterline" strategy.
parent 5ab704dd
...@@ -242,7 +242,7 @@ def intersect_sphere_point(center, radius, radiussq, direction, point): ...@@ -242,7 +242,7 @@ def intersect_sphere_point(center, radius, radiussq, direction, point):
def intersect_sphere_line(center, radius, radiussq, direction, edge): def intersect_sphere_line(center, radius, radiussq, direction, edge):
# make a plane by sliding the line along the direction (1) # make a plane by sliding the line along the direction (1)
d = edge.dir d = edge.dir
n = pcross(n, direction) n = pcross(d, direction)
if pnorm(n) == 0: if pnorm(n) == 0:
# no contact point, but should check here if sphere *always* intersects # no contact point, but should check here if sphere *always* intersects
# line... # line...
......
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