Path: Append unit tests for helix generator

This commit is contained in:
Russell Johnson
2022-01-06 21:35:11 -06:00
committed by sliptonic
parent c36b102e87
commit e92a0e813f
2 changed files with 156 additions and 5 deletions

View File

@@ -56,6 +56,11 @@ def generate(
startPoint = edge.Vertexes[0].Point
endPoint = edge.Vertexes[1].Point
# Swap start and end points if edge line is inverted
if startPoint.z < endPoint.z:
endPoint = edge.Vertexes[0].Point
startPoint = edge.Vertexes[1].Point
PathLog.track(
"(helix: <{}, {}>\n hole radius {}\n inner radius {}\n step over {}\n start point {}\n end point {}\n step_down {}\n tool diameter {}\n direction {}\n startat {})".format(
startPoint.x,