How does FreeCAD choose the direction of angle constraints?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
esr
Posts: 63
Joined: Sat Aug 21, 2021 9:10 pm
Location: Malvern, PA
Contact:

How does FreeCAD choose the direction of angle constraints?

Post by esr »

Version 0.18.4, running under Pop!_OS 20.10.

When I create an angle constraint between two lines, the solver could use either of two complementary arcs - either clockwise or counterclockwise, with the recorded angles differing by complementation with 180 degrees.

I want it to use the arc that records the lesser angle, to make my spreadsheet with multiple angle constraints easier to read and reduce clutter in the sketch. Sometimes it chooses the greater angle (> 180 deg). I can't find any pattern to how it makes these choices, and the documentation is silent on this matter.

If someone can explain how this works, I will add it to the documentation wiki.
chrisb
Veteran
Posts: 54150
Joined: Tue Mar 17, 2015 9:14 am

Re: How does FreeCAD choose the direction of angle constraints?

Post by chrisb »

I'm afraid that only Abdullah can answer this; and he cannot, because he is currently very busy. Let's ask him anyway:
Abdullah wrote:ping
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
drmacro
Veteran
Posts: 8976
Joined: Sun Mar 02, 2014 4:35 pm

Re: How does FreeCAD choose the direction of angle constraints?

Post by drmacro »

You could have a look at his treatise, it may provide clues, but is specifically talking about the solver.

I converted to pdf so I could read on my tablet.

I have only gotten 7 pages in so far. :mrgreen:

I've attached the pdf to this post.
Attachments
fc-solver-latex.pdf
(269 KiB) Downloaded 91 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: How does FreeCAD choose the direction of angle constraints?

Post by GeneFC »

esr wrote: Tue Sep 14, 2021 10:52 am Version 0.18.4, running under Pop!_OS 20.10.
There has been a huge amount of work on the sketcher in the past couple of years. In particular there has been a lot of work on constraints to make them more resistant to sketch-flipping and other problems.

Before pursuing this very far it would be a really good idea to update, at least to version 0.19, and even better to version 0.20

Gene
User avatar
esr
Posts: 63
Joined: Sat Aug 21, 2021 9:10 pm
Location: Malvern, PA
Contact:

Re: How does FreeCAD choose the direction of angle constraints?

Post by esr »

GeneFC wrote: Tue Sep 14, 2021 1:49 pm Before pursuing this very far it would be a really good idea to update, at least to version 0.19, and even better to version 0.20
I hear you, but my one experience of trying to upgrade has been very negative. I tried to use the Aug 21st AppImage only to find that some bug had abolished the top toolbar. It was unusable - I had to use kill from another terminal window to get out of it. Then when I backed down to 0.18 . I found the AppImage had messed with my save in a way that made it unloadable.

Can you recommend a build of 0.20 that is stable and usable?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: How does FreeCAD choose the direction of angle constraints?

Post by GeneFC »

I have never heard of Pop!_OS 20.10, so I have no idea what might work.

A very large number of folks using all sorts of OS are working in version 0.20. It can certainly be done.

Gene
chrisb
Veteran
Posts: 54150
Joined: Tue Mar 17, 2015 9:14 am

Re: How does FreeCAD choose the direction of angle constraints?

Post by chrisb »

You may upload a file with such a questionable angle. We could try in 0.20.
I haven't seen a flipping angle for quite some time.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54150
Joined: Tue Mar 17, 2015 9:14 am

Re: How does FreeCAD choose the direction of angle constraints?

Post by chrisb »

This is all I can come up with.

At the left the pair of lines was selected before creating the angle.
At the right the center was selected too.
Attachments
SnipScreenshot-6ca09a.png
SnipScreenshot-6ca09a.png (11.08 KiB) Viewed 2299 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
drmacro
Veteran
Posts: 8976
Joined: Sun Mar 02, 2014 4:35 pm

Re: How does FreeCAD choose the direction of angle constraints?

Post by drmacro »

I run 0.20 very well on Debian 10 & 11 and UbuntuStudio 20 & 21.

Pop!_OS is an Ubuntu variant with a "custom" GNOME desktop, that appears to be only offered by System76.
(I have two Sys76 laptops...first thing I did was "pop" Pop!_OS and install UbuntuStudio. 8-) )

I'd guess it is a desktop manager "feature" that is clashing with Qt...note this is a WAG on my part. :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
thomas-neemann
Veteran
Posts: 11893
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: How does FreeCAD choose the direction of angle constraints?

Post by thomas-neemann »

drmacro wrote: Tue Sep 14, 2021 2:55 pm .... clashing with Qt......
I agree. i am using xfce. that works without qt
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply