vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.57k stars 533 forks source link

Pocket closes the program #1894

Open MARIOBASZ opened 3 months ago

MARIOBASZ commented 3 months ago

According to the figure, the diameter of the cutter and the stepover, pocket closes the program. Will it go into loop? Problem with the last level of pocket? When modifying stepover this problem does not occur. But I may have lost a lot of previous work time. Any ideas to solve it? Example: problem with bit 0.10 and stepover 50% PRUEBA problema pocket.txt

MARIOBASZ commented 2 months ago

Sometimes the generation of the profile generates the wrong route, or a kind of loop or, on the contrary, an open route. The problem seems to be generated by recursion on this last case.

MARIOBASZ commented 2 months ago

IMG_9802

MARIOBASZ commented 2 months ago

IMG_9803

MARIOBASZ commented 2 months ago

force close path if it is open, I fix the problem

MARIOBASZ commented 2 months ago

In cnc.py, inside def _pocket line 4466 after for pout in opath: add: if not pout.isClosed(): pout.close()