Pocket clearing struggle.

Here's the place for discussion related to CAM/CNC and the development of the Path module.
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Pocket clearing struggle.

Postby dmitry_sushkov » Tue May 11, 2021 6:32 am

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 725 times
Screenshot at 2021-05-11 07-53-29.png
Screenshot at 2021-05-11 07-53-29.png (236.89 KiB) Viewed 725 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 dmitry_sushkov on Thu May 13, 2021 9:04 am, edited 1 time in total.
chrisb
Posts: 36093
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Postby chrisb » Tue May 11, 2021 7:46 am

Hi and welcome to the forum!

Works flawless here:
SnipScreenshot-65bc83.png
SnipScreenshot-65bc83.png (128.3 KiB) Viewed 721 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.

Postby dmitry_sushkov » Tue May 11, 2021 11:56 am

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 687 times
chrisb
Posts: 36093
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Postby chrisb » Tue May 11, 2021 7:14 pm

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
Posts: 2188
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Pocket clearing struggle.

Postby herbk » 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.
Gruß Herbert
dmitry_sushkov
Posts: 6
Joined: Tue May 11, 2021 6:00 am

Re: Pocket clearing struggle.

Postby dmitry_sushkov » Wed May 12, 2021 8:26 am

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
Posts: 36093
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Postby chrisb » 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.
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.

Postby dmitry_sushkov » Wed May 12, 2021 11:11 am

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
Posts: 36093
Joined: Tue Mar 17, 2015 9:14 am

Re: Pocket clearing struggle.

Postby chrisb » Wed May 12, 2021 2:32 pm

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.

Postby dmitry_sushkov » Thu May 13, 2021 9:04 am

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