Path counterclockwise for engraving?

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

Path counterclockwise for engraving?

Post by Giulio Buccini »

Hi all,

when selecting the segments/arcs for an engraving operation, Freecad-Path always generate toolpath in the clockwise direction, no matter what I do to convince him to go in the counterclockwise direction instead:
Selection_7652.jpg
Selection_7652.jpg (25.79 KiB) Viewed 2384 times
Any idea how I could reverse the path direction?

P.S.
I already tried to select the edges one by one in counterclockwise direction, as well as directly drawing the edges counterclockwise by using the sketch editor.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path counterclockwise for engraving?

Post by chrisb »

A preferably very simple file showing the issue helps the helpers to fiddle with the options. I would start trying to move the start point.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Path counterclockwise for engraving?

Post by Giulio Buccini »

Here the sketch I used for testing.
(Open or closed path exhibits the same behaviour.)
Attachments
engrave-test.FCStd
(17.09 KiB) Downloaded 36 times
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Path counterclockwise for engraving?

Post by Giulio Buccini »

chrisb wrote: Sun Nov 28, 2021 10:03 pm I would start trying to move the start point.
UNfortunately, you cannot enable/disable the start-point for engraving operations. That option is not available.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path counterclockwise for engraving?

Post by chrisb »

It has a start vertex instead - which does rather fancy things if the path is not closed:
Attachments
SnipScreenshot-904a81.png
SnipScreenshot-904a81.png (10.36 KiB) Viewed 2322 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Path counterclockwise for engraving?

Post by Giulio Buccini »

I do not understand... choosing a different start-vertex works for closed paths instead?
(AFAIR, I tried this trick and was not working for open or closed paths both.)
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path counterclockwise for engraving?

Post by chrisb »

Setting the start vertex for closed loops works perfectly here.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.26375 (Git)
Build type: Release
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Path counterclockwise for engraving?

Post by Giulio Buccini »

Hi Chris,

for me doesn't work. I've set the start vertex at #8, but the path direction is still clockwise, not counterclockwise.
Selection_7654.jpg
Selection_7654.jpg (28.66 KiB) Viewed 2121 times
---------------------------------------------
OS: Ubuntu 16.04.7 LTS (XFCE/xfce)
Word size of FreeCAD: 64-bit
Version: 0.20.26375 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 8a6e3d1)
Hash: 8a6e3d1b766a34546806b22d750929c2d00e30a6
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Path counterclockwise for engraving?

Post by chrisb »

You have 8 vertices, and the default is 0, thus the last would be 7.
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: Path counterclockwise for engraving?

Post by sliptonic »

Just curious. What's the use case here? For an on-line operation like engraving climb/conventional is irrelevant. Why does the path need to go a specific direction?
Post Reply