Adaptive clearing on multiple faces (fixed)

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!
Post Reply
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Adaptive clearing on multiple faces (fixed)

Post by MRx »

Update with FC 0.20 (Git):

generating a path from selected outlines does not work anymore, it gives many errors:

I figured this out since my object relies on this feature, and that worked properly with FC 0.19 (but 0.19 does not support extensions with adaptive), now with FC 0.20 if I modify any settings in the Path setup sheet it will try to recreate all the paths which were created using edges. All the edge based paths will be erased from my original model



22:50:59 PathFeatureExtensionsGui.ERROR: _resetCachedExtensions()
22:50:59 Traceback (most recent call last):
File "/Users/markus/devel/freecad/build/Mod/Path/PathScripts/PathUtils.py", line 60, in new_function
res = function(*args, **kwargs)
File "/Users/markus/devel/freecad/build/Mod/Path/PathScripts/PathOp.py", line 552, in execute
result = self.opExecute(obj) # pylint: disable=assignment-from-no-return
File "/Users/markus/devel/freecad/build/Mod/Path/PathScripts/PathAdaptive.py", line 694, in opExecute
self.pathArray = _get_working_edges(self, obj)
File "/Users/markus/devel/freecad/build/Mod/Path/PathScripts/PathAdaptive.py", line 587, in _get_working_edges
wire_B = face.Wires[0]
<class 'IndexError'>: list index out of range
22:52:38 PathGeom.INFO: Zero working area to process. Check your selection and settings.
22:52:38 PathAdaptive.INFO: *** Adaptive toolpath processing started...

22:52:38 PathAdaptive.ERROR: No wire data returned.

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.25220 (Git)
Build type: Release
Branch: master
Hash: 46282db7c8c65d1205a4cd03499d4beadb1573c6
Python version: 3.9.0
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/Germany (en_DE)

-------

Hi,

I'm working on one part which has multiple faces on the same Z level including some pockets, it would be nice to be able to clear at once with the adaptive feature.
JQiHKf.png
JQiHKf.png (45.21 KiB) Viewed 1770 times
The way I usually handle those things is to copy the object, remove the pocket and run the adaptive clearing over it to create the path, however it would be much better to be able to do this without this additional step.

Face Operation / ZigZag is not an option for Aluminium since it doesn't respect climbing / conventional and it adds different pressure on the tool.

Face Region, Spiral:

is following expected?
XkhLEZ.png
XkhLEZ.png (31.05 KiB) Viewed 1747 times
Climbing vs Conventional:
https://www.youtube.com/watch?v=bRjnk9GOo_w

On the actual model (not the one which I have uploaded) I get following message with the face operation (I still need to isolate how I get there), and the face operation is also very slow (while adaptive is much better).
21:31:10 19Standard_NullObject BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt19Standard_NullObject BRep_Tool:: TopoDS_Vertex hasn't gp_PntSomething unexpected happened. Check project and tool config.

Anyway I need the Adaptive feature going over everything not the Face Operation.
Attachments
Multisurfaces.FCStd
(66.14 KiB) Downloaded 19 times
Last edited by MRx on Sun Jul 11, 2021 4:01 pm, edited 5 times in total.
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: Adaptive clearing on multiple faces

Post by MRx »

Problem solved by selecting the outline (even on different Z heights!)
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: Adaptive clearing on multiple faces (re-opened / freecad git bug)

Post by MRx »

ok this is now a bug in FreeCAD 0.20 (latest git version)
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Adaptive clearing on multiple faces (re-opened / freecad git bug)

Post by GeneFC »

Did you totally rebuild the job in version 0.20 or did you try to continue work on a job created in 0.19?

Gene
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: Adaptive clearing on multiple faces (re-opened / freecad git bug)

Post by MRx »

Yes, I cannot even select the outline of a square and apply adaptive clearing with the latest git version.
Russ4262
Posts: 941
Joined: Sat Jun 30, 2018 3:22 pm
Location: Oklahoma
Contact:

Re: Adaptive clearing on multiple faces (re-opened / freecad git bug)

Post by Russ4262 »

Afternoon sir.
Got it. PR #4917, [Path] Adaptive: Correct the processing of selected edges, is active now.

Thanks for reporting this!

Have a great day.
Russell
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: Adaptive clearing on multiple faces (re-opened / freecad git bug)

Post by MRx »

That fixes it thanks!
Post Reply