Adaptive Path/CAM Operation

Here's the place for discussion related to CAM/CNC and the development of the Path module.
jurij
Posts: 7
Joined: Tue Oct 23, 2018 11:37 am

Re: Adaptive Path/CAM Operation

Postby jurij » Fri Jan 04, 2019 1:01 pm

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

Re: Adaptive Path/CAM Operation

Postby chrisb » 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 22.47.44.png
Bildschirmfoto 2019-01-04 um 22.47.44.png (19.64 KiB) Viewed 396 times
Edit: I replaced model and screenshot after Herbert's comment below.
Attachments
adaptive_cb.FCStd
(33.69 KiB) Downloaded 33 times
User avatar
sliptonic
Posts: 1560
Joined: Tue Oct 25, 2011 10:46 pm

Re: Adaptive Path/CAM Operation

Postby sliptonic » Fri Jan 04, 2019 1:22 pm

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

Re: Adaptive Path/CAM Operation

Postby chrisb » Fri Jan 04, 2019 1:49 pm

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

Re: Adaptive Path/CAM Operation

Postby herbk » Fri Jan 04, 2019 7:19 pm

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 417 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 417 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
Posts: 1307
Joined: Fri Sep 16, 2016 9:28 pm

Re: Adaptive Path/CAM Operation

Postby mlampert » 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
kreso-t
Posts: 114
Joined: Sat Aug 04, 2018 2:32 pm

Re: Adaptive Path/CAM Operation

Postby kreso-t » Fri Jan 04, 2019 9:00 pm

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

Re: Adaptive Path/CAM Operation

Postby chrisb » Fri Jan 04, 2019 9:51 pm

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

Re: Adaptive Path/CAM Operation

Postby chrisb » Fri Jan 04, 2019 9:58 pm

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

Re: Adaptive Path/CAM Operation

Postby chrisb » Fri Jan 04, 2019 10:15 pm

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.