Commit 14845e18 authored by sumpfralle's avatar sumpfralle

fixed improbably rounding issue causing eternal loops of the PushCutter


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@295 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 6b98aebd
......@@ -8,6 +8,7 @@ Version 0.2.3 - UNRELEASED
* improved GUI for model scaling
* allow to configure if the tool should move inside/along/around the boundary limits
* prevent invalid input values (zero tool radius, ...)
* fixed a bug that could rarely cause eternal loops of the PushCutter
* reduced memory consumption of toolpaths for python 2.6 or above
Version 0.2.2 - 2010-03-17
......
......@@ -54,6 +54,7 @@ class PushCutter:
else:
GenerateToolPathSlice = self.GenerateToolPathSlice_ode
last_loop = False
while z >= minz:
# update the progress bar and check, if we should cancel the process
if draw_callback and draw_callback(text="PushCutter: processing layer %d/%d" \
......@@ -76,9 +77,11 @@ class PushCutter:
paths += self.pa.paths
z -= dz
if (z < minz) and (z + dz > minz):
if (z < minz) and not last_loop:
# never skip the outermost bounding limit - reduce the step size if required
z = minz
# stop after the next loop
last_loop = True
current_layer += 1
......
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