Ticket #4658 - Pocket clearing struggle

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Ticket #4658 - Pocket clearing struggle

Post by dmitry_sushkov »

Bug tracker link: https://tracker.freecadweb.org/view.php?id=4658

Hi.
It's my first post here.
Have been using FreeCAD since I've built a DIY CNC 5 years ago. Modelled a quite complex guitar shape but wasn't able to build path for it and moved to Fusion360. Surprisingly it calculated path even on curved surface with errors. As you may know, Fusion360 guys lately restricted their free version and I decided to give FreeCAD a second try.

But I'm having weird issues with paths in FreeCAD.
Built a simple shape, all closed and constrained. Pocket clearing seems to work fine but with no helix plunge, which is wrong for flat mill bit. Adaptive clearing resulting some weird paths. Here is the file. https://drive.google.com/file/d/1kwrOw5 ... sp=sharing
And here are screenshots
Screenshot at 2021-05-11 07-52-55.png
Screenshot at 2021-05-11 07-52-55.png (227.8 KiB) Viewed 2218 times
Screenshot at 2021-05-11 07-53-29.png
Screenshot at 2021-05-11 07-53-29.png (236.89 KiB) Viewed 2218 times
My environment:
OS: Ubuntu Core 20 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Unknown
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/United States (en_US)
Last edited by Kunda1 on Sun Aug 29, 2021 1:43 pm, edited 2 times in total.
Reason: Added ticket number to thread title
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Post by chrisb »

Hi and welcome to the forum!

Works flawless here:
SnipScreenshot-65bc83.png
SnipScreenshot-65bc83.png (128.3 KiB) Viewed 2214 times
Concerning helical plunging of a pocket operation: did you try the ramp dressup?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Re: Pocket clearing struggle.

Post by dmitry_sushkov »

chrisb wrote: Tue May 11, 2021 7:46 am Hi and welcome to the forum!

Works flawless here:
SnipScreenshot-65bc83.png
Concerning helical plunging of a pocket operation: did you try the ramp dressup?
Thank you for responce, I'll check the documentation about ramp dressup. I mean this strange part. Your screenshot also have it. Pocket clearing doesn't have it, only adaptive clearing with "use outline" checkbox enabled. Without "use outline" it builds incomplete path.
Screenshot at 2021-05-11 07-53-29.png
Screenshot at 2021-05-11 07-53-29.png (68.27 KiB) Viewed 2180 times
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Post by chrisb »

I can confirm the behaviour. But I cannot check how it should work, because the wiki is currently down.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24825 (Git)
Build type: Release
Branch: master
Hash: ccc4151b3020969450325466e385850783795325
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Pocket clearing struggle.

Post by herbk »

I can confirm both behaviors to, at:

OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.20.24825 (Git) AppImage
Build type: Release
Branch: master
Hash: ccc4151b3020969450325466e385850783795325
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: German/Germany (de_DE)

Pic 1 is the result if you select the walls of the pocket. If you select only the wall around the not milled area, Adaptive creates no path at all...


Using Pocket OP works here, only not with Pattern Spiral, wich leaves a big island at the middle.
I would use Pocket OP, Patern ZigZagOffset, Op setting Keep Tool down and a Ramp Entry Dressup.
Gruß Herbert
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Re: Pocket clearing struggle.

Post by dmitry_sushkov »

herbk wrote: Tue May 11, 2021 7:52 pm I can confirm both behaviors to, at:

OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.20.24825 (Git) AppImage
Build type: Release
Branch: master
Hash: ccc4151b3020969450325466e385850783795325
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: German/Germany (de_DE)

Pic 1 is the result if you select the walls of the pocket. If you select only the wall around the not milled area, Adaptive creates no path at all...


Using Pocket OP works here, only not with Pattern Spiral, wich leaves a big island at the middle.
I would use Pocket OP, Patern ZigZagOffset, Op setting Keep Tool down and a Ramp Entry Dressup.
Thank you all. I tried spiral but it's working tooo slow. With 100% overlap and 8 mm step down it freezed for 30 minutes, then generated correct path. Then I changed to real parameters 40% overlap and 2 mm stepdown and it freezed half day with no result...

Finally got desired path with Pocket OP ZigZagOffset pattern and Ramp entry dress-up.

So, adaptive clearing bug (actually 2 bugs) confirmed. Should I create an issue in BT?

I would also refactor spiral (and probably all others) strategy. Shouldn't be lot of work to check if next layer have same outline and just copy previous one, not calculate it from scratch. Unfortunately I'm not a cpp neither Python programmer, just sharing my thoughts.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Post by chrisb »

dmitry_sushkov wrote: Wed May 12, 2021 8:26 am So, adaptive clearing bug (actually 2 bugs) confirmed. Should I create an issue in BT?
Yes please.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Re: Pocket clearing struggle.

Post by dmitry_sushkov »

chrisb wrote: Wed May 12, 2021 9:28 am
dmitry_sushkov wrote: Wed May 12, 2021 8:26 am So, adaptive clearing bug (actually 2 bugs) confirmed. Should I create an issue in BT?
Yes please.
Done. MantisBT itself isn't set up properly and unable to handle uploads. Hope link to this topic will be enough.
APPLICATION ERROR #503

Invalid upload path. Directory either does not exist or not writable to webserver.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Post by chrisb »

I wanted to add the backlink, but the whole tracker seems to be unavailable.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Re: Pocket clearing struggle.

Post by dmitry_sushkov »

chrisb wrote: Wed May 12, 2021 2:32 pm I wanted to add the backlink, but the whole tracker seems to be unavailable.
Added.
Post Reply