Commit 986a4484 authored by Guillaume Seguin's avatar Guillaume Seguin

Add a TODO to correctly handle some situations in the 3D viz

parent ab91d1b6
...@@ -441,6 +441,11 @@ class GcodeModel(Model): ...@@ -441,6 +441,11 @@ class GcodeModel(Model):
avg_move_normal_y = -avg_move_x avg_move_normal_y = -avg_move_x
fact = math.cos(delta_angle / 2) fact = math.cos(delta_angle / 2)
fact = max(0.3, abs(fact)) fact = max(0.3, abs(fact))
# TODO: Handle cases where the above would create a "peak"
# at the intersection by adding an extra set of vertices
# and facets
if fact < 0.5:
pass
hw = path_halfwidth / fact hw = path_halfwidth / fact
# Compute vertices # Compute vertices
p1x = prev_pos[0] - hw * avg_move_normal_x p1x = prev_pos[0] - hw * avg_move_normal_x
......
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