Issue #7913 - Path not going to the bottom of a pocket

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!
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Path not going to the bottom of a pocket

Post by GeneFC »

acp693 wrote: Wed Nov 30, 2022 11:43 am I've zipped the file and it now allows me to upload it.
Rather than re-zipping the FCStd (already zipped) file you can save with maximum compression. Setting in the Preferences.

Gene
acp693
Posts: 127
Joined: Wed Dec 15, 2021 7:41 pm

Re: Path not going to the bottom of a pocket

Post by acp693 »

GeneFC wrote: Wed Nov 30, 2022 2:51 pm
acp693 wrote: Wed Nov 30, 2022 11:43 am I've zipped the file and it now allows me to upload it.
Rather than re-zipping the FCStd (already zipped) file you can save with maximum compression. Setting in the Preferences.

Gene
Thanks Gene. It was already on Maximum compression level (level9!) Zipping brought it just under the limit.
acp693
Posts: 127
Joined: Wed Dec 15, 2021 7:41 pm

Re: Path not going to the bottom of a pocket

Post by acp693 »

chrisb wrote: Wed Nov 30, 2022 12:26 pm Can you upload the sketch creating the B-splines? If I create one from the extrude, it has 475 DOF for one side. It has no controlpoints, but a degree of 15. Does it really have to be that complicated?
Hi Chris, after messing around with my original model, I extracted the original splines, made a face and then a solid and booleaned them from a block. File size is much lower. compared to my test block from before, I'd used a facebinder to extract the bottom of the pocket from my original model and then extruded and minused that from a block - maybe that was the cause of the extreme amount of data. The original splines are much simpler.

However, With this new test scenario, I can't create any path at all, no matter what depth settings I use. I get the following error message:

16:21:41 PocketShape.ERROR: Pocket does not support shape Model-Cut001.Face11
16:21:41 Geom.INFO: Zero working area to process. Check your selection and settings.

I'm a bit at a loss as what to do now.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31109 (Git)
Build type: Release
Branch: master
Hash: c23ee7ad88433a0f00e84afae0a62fe738be0c09
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * BIM 2021.12.0
  * CurvedShapes 1.0.4
  * Curves 0.5.3
  * FeedsAndSpeeds 0.4.0
  * Marz 0.0.26-alpha
  * Silk 1.0.0
Attachments
TestPocket5.FCStd
(292.52 KiB) Downloaded 12 times
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path not going to the bottom of a pocket

Post by chrisb »

I have created a simple test file. It contains two pockets.
SnipScreenshot-34be30.png
SnipScreenshot-34be30.png (13.71 KiB) Viewed 519 times
The upper one was made with a B-Spline, the lower with an arc.
The B-spline based pocket fails, the arc based succeeds.
SnipScreenshot-12586e.png
SnipScreenshot-12586e.png (4.25 KiB) Viewed 519 times

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.31035 (Git)
Build type: Release
Branch: master
Hash: c8074a972ee233d303e50e5d525aecae09c1cd04
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.4.0
  * fcgear 1.0.0
  * fasteners 0.4.16
  * sheetmetal 0.2.57
  * ExplodedAssembly
  * Curves 0.6.1
Attachments
BSplinePocket.FCStd
(33.78 KiB) Downloaded 11 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path not going to the bottom of a pocket

Post by chrisb »

acp693 wrote: Wed Nov 30, 2022 11:43 am I don't know how to submit a bug report.
You need a Github account and then you create a ticket here: https://github.com/FreeCAD/FreeCAD/issues.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
acp693
Posts: 127
Joined: Wed Dec 15, 2021 7:41 pm

Re: Path not going to the bottom of a pocket

Post by acp693 »

It looks to me like the upper one fails and not the lower one? The path on the upper one doesn't reach the bottom of the pocket?
chrisb wrote: Wed Nov 30, 2022 4:41 pm The lower one was made with a B-Spline, the upper with an arc.
The B-spline based pocket fails, the arc based succeeds.
Thank you for going to this effort, I appreciate it greatly
acp693
Posts: 127
Joined: Wed Dec 15, 2021 7:41 pm

Re: Path not going to the bottom of a pocket

Post by acp693 »

chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path not going to the bottom of a pocket

Post by chrisb »

acp693 wrote: Wed Nov 30, 2022 5:11 pm It looks to me like the upper one fails and not the lower one? The path on the upper one doesn't reach the bottom of the pocket?
I have corrected my post above. I had forgotten to save before I uploaded the file.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
acp693
Posts: 127
Joined: Wed Dec 15, 2021 7:41 pm

Re: Path not going to the bottom of a pocket

Post by acp693 »

Hi Chris, your post is still wrong. The upper pocket is made with a spline as far as I can see and the lower one with an arc. The upper pocket is the one that fails
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path not going to the bottom of a pocket

Post by chrisb »

acp693 wrote: Wed Nov 30, 2022 6:05 pm Hi Chris, your post is still wrong. The upper pocket is made with a spline as far as I can see and the lower one with an arc. The upper pocket is the one that fails
Thanks for correcting me again :oops: . I may explain what had happened: I started with the B-spline below. Then I thought it might be slightly clearer if I had the wrong one on top, because in the Job it is above the right one ... And then I messed it all up.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply