Toolpath computation takes forever

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!
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Toolpath computation takes forever

Post by Giulio Buccini »

Hello,

I'm creating a fixture by an HDPE plate, but FreeCAD doesn't want to collaborate with me. :D

After selecting just three slots for a pocket operation (spiral) FreeCAD takes three minute to compute that simple paths (i.e. around a minute for every circular slot.)
In this conditions the program is unusable... :(


What I'm doing wrong?
(I avoided to select all of the twelve circular slots to not stay all day in front of the monitor)
Selection_7736.jpg
Selection_7736.jpg (28.51 KiB) Viewed 1773 times
---------------------------------------------------
OS: Ubuntu 16.04.7 LTS (XFCE/xfce)
Word size of FreeCAD: 64-bit
Version: 0.20.26720 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 7bca26e)
Hash: 7bca26e7c14d4d43374ff7e0c8582735b249cbfd
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
Attachments
Mini-FixturePlate 1.0-milling.FCStd
(60.94 KiB) Downloaded 25 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Toolpath computation takes forever

Post by GeneFC »

I tried this with a bit newer version (27463) and I saw very long times; not three minutes, but at least one minute.

I just compiled and tried again. This time the process was almost instant.

OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of FreeCAD: 64-bit
Version: 0.20.27538 (Git)
Build type: Release
Branch: Master
Hash: 6cd68bf644ab65e4ecf53bfe2f619c5096d445af
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)

Gene
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Toolpath computation takes forever

Post by Giulio Buccini »

Translated in human language? :D
Do you have ani trick for me?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Toolpath computation takes forever

Post by GeneFC »

No tricks, but there have been quite a few changes in Path WB lately.

I would guess that something causing the slowdown got fixed.

Gene
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Toolpath computation takes forever

Post by Giulio Buccini »

Also the helix path operation, when applied to a surface with many circular slots, became super slow...
:( :( :(
nahshon
Posts: 225
Joined: Wed Jul 24, 2013 8:06 pm

Re: Toolpath computation takes forever

Post by nahshon »

"Spiral" pockets never worked for me. They either took forever or just produced broken G-Code.
Try "Offset" or "ZigZagOffset".

-- Itai
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Toolpath computation takes forever

Post by Giulio Buccini »

Nope.
Offset strategy is even worse. It takes a dozen of seconds and then...
.
.
.
Selection_7737.jpg
Selection_7737.jpg (21.43 KiB) Viewed 1598 times
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Toolpath computation takes forever

Post by Giulio Buccini »

By setting

use outline = true
step over = 50%

the offset strategy works, but you have to wait a dozen of seconds to get the final result after pressing "Ok"
Not a big problem, but... (see following post)
Selection_7738.jpg
Selection_7738.jpg (44.61 KiB) Viewed 1583 times
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Toolpath computation takes forever

Post by Giulio Buccini »

After adding the remaining circular slots the computation time grows in a quadratic manner.
:( :( :(
Selection_7739.jpg
Selection_7739.jpg (45.64 KiB) Viewed 1572 times
.
.
Unusable...
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Toolpath computation takes forever

Post by Giulio Buccini »

Maybe my memory is not so good, but seems to me that the old version of FreeCAD was way faster!

As pointed by GeneFC, probably there is a problem in the new code of version 0.20.
Post Reply