Commit 46abd367 authored by Whitham D. Reeve II's avatar Whitham D. Reeve II

Replace point object style with point tuple style.

parent 6716dab0
...@@ -466,7 +466,7 @@ def get_collision_waterline_of_triangle(model, cutter, up_vector, triangle, z): ...@@ -466,7 +466,7 @@ def get_collision_waterline_of_triangle(model, cutter, up_vector, triangle, z):
max_length = sqrt(x_dim ** 2 + y_dim ** 2 + z_dim ** 2) max_length = sqrt(x_dim ** 2 + y_dim ** 2 + z_dim ** 2)
result = [] result = []
for edge in outer_edges: for edge in outer_edges:
direction = pnormalized(up_vector.cross(edge.dir)) direction = pnormalized(pcross(up_vector,edge.dir))
if direction is None: if direction is None:
continue continue
direction = pmul(direction, max_length) direction = pmul(direction, max_length)
......
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