Path: Append unit tests for helix generator
This commit is contained in:
committed by
sliptonic
parent
c36b102e87
commit
e92a0e813f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user