Adaptive Path/CAM Operation

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!
jurij
Posts: 22
Joined: Tue Oct 23, 2018 11:37 am

Re: Adaptive Path/CAM Operation

Post by jurij »

Deleting the DatumPlane gives me the same wrong path.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Adaptive Path/CAM Operation

Post by chrisb »

I have created a very simple example showing the issue with a cube and a rectangular pocket. It might help to find the error.
Bildschirmfoto 2019-01-04 um 22.47.44.png
Bildschirmfoto 2019-01-04 um 22.47.44.png (19.64 KiB) Viewed 1631 times
Edit: I replaced model and screenshot after Herbert's comment below.
Attachments
adaptive_cb.FCStd
(33.69 KiB) Downloaded 72 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
sliptonic
Veteran
Posts: 3457
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: Adaptive Path/CAM Operation

Post by sliptonic »

I'm still not able to duplicate the problem on my home machine. I tried updating everything on my work computer and got bit by this issue so I'm hesitant to try the same thing at home.

Maybe you could try a git bisect and figure out when the problem got introduced.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Adaptive Path/CAM Operation

Post by chrisb »

I have tested some old (Mac) versions. I loaded my cubic file from above and performed a recompute:

14802: crash
14827: works.
14915: shows the undesired behaviour from above.

Hope this helps.
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: Adaptive Path/CAM Operation

Post by herbk »

Hi Chris,
chrisb wrote: Fri Jan 04, 2019 1:13 pm I have created a very simple example showing the issue with a cube and a rectangular pocket. It might help to find the error.Bildschirmfoto 2019-01-04 um 14.12.34.png
atm i try'd only your model. If i open the file you posted i have the "path to nowhere". - And there is a milling path "hole through all" where i dont know where is the hole?
If i delete the job and make it new, at a first look it seams to work.
adaptive_cb_herbk.jpg
adaptive_cb_herbk.jpg (47.64 KiB) Viewed 1652 times

At a secound look there is a different problem but in my mind made by user...: You made the pocket at the bottom of the cube and create the patn without turning the part upside down, so milling path is createt through the part and leaves that part of it, which should be the pocket...
adaptive_cb_herbk_2.jpg
adaptive_cb_herbk_2.jpg (47.75 KiB) Viewed 1652 times
But i'm in mind that behavior is correct, because milling works "from top to bottom", if i want to mitt out something at the bottom i have to put the bottom to the top first. ;)


OS: "openSUSE Leap 42.3"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15481 (Git) AppImage
Build type: Release
Branch: master
Hash: 763b5c362fe4b98dca858f86f5d1353075224651
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Gruß Herbert
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: Adaptive Path/CAM Operation

Post by mlampert »

Not sure if I am relieved or worried that others run into the same issue - still no trace of the secret sauce though
EDIT: chrisb's model also fails for me
kreso-t
Posts: 115
Joined: Sat Aug 04, 2018 2:32 pm

Re: Adaptive Path/CAM Operation

Post by kreso-t »

mlampert wrote: Fri Jan 04, 2019 8:43 pm Not sure if I am relieved or worried that others run into the same issue - still no trace of the secret sauce though
EDIT: chrisb's model also fails for me
Hi, I will be able to check this in the next few days. I am on a journey currently.

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

Re: Adaptive Path/CAM Operation

Post by chrisb »

herbk wrote: Fri Jan 04, 2019 7:19 pm You made the pocket at the bottom of the cube and create the patn without turning the part upside down, so milling path is createt through the part and leaves that part of it, which should be the pocket...
You are right, I have replaced file and screenshot above, however the issue remains.
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: Adaptive Path/CAM Operation

Post by chrisb »

I have tried with my Ubuntu version. A recompute fixes the issue. Saving and recompute on the Mac recreates it again.

OS: Ubuntu 16.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15528 (Git)
Build type: Release
Branch: master
Hash: 1f30c218e65d605e7306dc82732cb7d83bb6bb00
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
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: Adaptive Path/CAM Operation

Post by chrisb »

Even if I recompute only the AdaptivePath the issue is toggled. It seems that not only the values of AdaptiveInputState and AdaptiveOutputState change, but also Placements of Z-axis, XZ plane.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply