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!
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

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

Post by drmacro »

thomas-neemann wrote: Tue Sep 14, 2021 3:43 pm
drmacro wrote: Tue Sep 14, 2021 2:55 pm .... clashing with Qt......
I agree. i am using xfce. that works without qt
Umm...maybe I don't get it, but FreeCAD uses Qt as the UI engine, it's compiled in FreeCAD.

Are you saying xfce ignores Qt even if a compiled application uses it? :?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
thomas-neemann
Veteran
Posts: 11801
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 3:46 pm
I can't judge that, but I can imagine that it only occurs in connection with the x-surface which qt uses
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
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 »

drmacro wrote: Tue Sep 14, 2021 2:55 pm 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:
That was a shrewd guess. I actually use the i3 tiling window manager, not the stock GNOME-based one. I tried switching back to the stock GNOME-vased WM and in that environment the toolbars came up.

So this is some recently-introduced problem specifically to do with i3, not present in 0.18.

Is this enough evidence for me to file a bug report under local customs?
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

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

Post by drmacro »

esr wrote: Tue Sep 14, 2021 4:07 pm ...
That was a shrewd guess. I actually use the i3 tiling window manager, not the stock GNOME-based one. I tried switching back to the stock GNOME-vased WM and in that environment the toolbars came up.

So this is some recently-introduced problem specifically to do with i3, not present in 0.18.

Is this enough evidence for me to file a bug report under local customs?
I suppose, but I doubt FreeCAD can do anything about WM issues. (short of users listing workarounds). It's possible that it is a Qt problem, if that is the case, we wait for the good folks at Qt to find a fix...

I've had situations where simply changing themes in the WM will effect the text in widgets getting clipped vertically.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
thomas-neemann
Veteran
Posts: 11801
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 3:46 pm .... FreeCAD uses Qt as the UI engine, ...
"Qt 5.15, long term support (LTS) will only be available to commercial customers"

source: https://www.qt.io/blog/qt-offering-changes-2020


does it make sense to switch freecad to gtk (open source)?

that would also solve all ms windows and mac os problems at the same time, because freecad would then only run under linux.


edit

it seems like a big effort

https://forum.freecadweb.org/viewtopic.php?f=8&t=48906
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
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 »

thomas-neemann wrote: Tue Sep 14, 2021 6:15 pm that would also solve all ms windows and mac os problems at the same time, because freecad would then only run under linux.
That would remove at least 90% of the current FreeCAD users. Check the download statistics. :shock:

Gene
User avatar
thomas-neemann
Veteran
Posts: 11801
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 »

GeneFC wrote: Tue Sep 14, 2021 7:20 pm

I can imagine that most of them would then switch to linux, e.g. as a dual boot
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

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

Post by drmacro »

thomas-neemann wrote: Tue Sep 14, 2021 7:23 pm
GeneFC wrote: Tue Sep 14, 2021 7:20 pm

I can imagine that most of them would then switch to linux, e.g. as a dual boot
I agree with @GeneFC.

The average Windows and Mac users aren't into dual booting or virtual machines.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

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

Post by openBrain »

chrisb wrote: Tue Sep 14, 2021 2:54 pm 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.
Just to be complete on that, it depends how you draw your lines.
Let's give names to the points :
angle.png
angle.png (4.89 KiB) Viewed 1745 times
If you draw :
* A2->A1:B1->B2 => You will necessary end with internal angle, may you select the center or not
* A1->A2:B1->B2 or B2->B1:A2->A1 => Internal angle without center selected, complementary angle if center selected
* A1->A2:B2->B1 => Internal angle without center selected, supplementary angle if center selected
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

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

Post by chrisb »

Let's call the ends of the lines where they are coincident the "inner ends", and the others "outer ends". We then have the following cases:

1) No matter how the lines are created: without selecting the center we get always the inner angle
2) If both lines start at the inner ends and selecting both lines and the center yields the inner angle
3) if one or both lines start at the outer end and selecting both lines and the center yields the complementary angle.

If case two could be changed to work with the complementary angle too, we would have a sound concept and for all of these cases a possibility to per user's choice the inner or the complementary angle. Is it worth writing a feature request?

Things are different when the angle between lines is specified which don't have a common center: Then the angle is drawn between the start of one and the end of the other line. It is not possible to specify the complementary angle.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply