[solved] (Dangerous) behavior from the sketcher

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
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: (Dangerous) behavior from the sketcher

Post by thomas-neemann »

so that no damage occurs, I have removed the circle function from three points until the repair from the menu bar.

1.png
1.png (87.94 KiB) Viewed 1066 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: (Dangerous) behavior from the sketcher

Post by chrisb »

thomas-neemann wrote: Tue Jul 27, 2021 3:21 pm do you (or someone else) know whether freecad works under mac os in the virtualbox
FreeCAD runs on macOS in a Parallels/Ubuntu install.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: [workaround] (Dangerous) behavior from the sketcher

Post by chrisb »

I have tried on the mac in the virtual Ubuntu machine and can confirm the incorrect behaviour compared to the native macOS version.

OS: Ubuntu 16.04.7 LTS (Unity/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25288 (Git) AppImage
Build type: Release
Branch: master
Hash: bbb557aab6129efd9486d6df19f06c2976fdb7e5
Python version: 3.9.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [workaround] (Dangerous) behavior from the sketcher

Post by openBrain »

I can confirm with 0.19.2 and below version on Kubuntu 21.04.
It's even stranger as 3rd point on an axis leads to a tangent constraint.
3pt_circle.gif
3pt_circle.gif (145.67 KiB) Viewed 957 times
---
OS: Ubuntu 21.04 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.25180
Build type: Release
Branch: master
Hash: d3800cc36b5271e59977b4a608cdc6ae6fa1cf65
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/France (fr_FR)
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: [workaround] (Dangerous) behavior from the sketcher

Post by chrisb »

on macOS it proposes the tangent as well, while over one of the axes at an arbitrary point. The autoconstraint changes correctly to point-on-line when over the origin.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [workaround] (Dangerous) behavior from the sketcher

Post by openBrain »

chrisb wrote: Wed Jul 28, 2021 7:32 am on macOS it proposes the tangent as well, while over one of the axes at an arbitrary point. The autoconstraint changes correctly to point-on-line when over the origin.
I read on the thread you said "it runs fine on MacOS". I'm interested in having some details about what exactly is behaving differently as it happens that what we see on Ubuntu is precisely what is coded. :?

And it brings another question to the community : what we would like to happen ?
Please be precise on what constraint should be applied for :
* 1st click on a point ; on a curve (curve is line/arc/circle/... all together)
* 2nd click on a point ; on a curve
* 3rd click on a point ; on a curve

EDIT : I mistook in previous post. I think it's obvious that for points it should always propose point-on-line...
Last edited by openBrain on Wed Jul 28, 2021 8:01 am, edited 1 time in total.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: [workaround] (Dangerous) behavior from the sketcher

Post by chrisb »

I am heavily surprised: Today I wanted to check the behaviour on a geometric line element, and there autoconstraints worked correctly. After that they worked on the axes too.
And here comes the real surprise: it works always now; even after restarting with a plain vanilla config file :?

Can anyone confirm?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: [workaround] (Dangerous) behavior from the sketcher

Post by chrisb »

openBrain wrote: Wed Jul 28, 2021 7:56 am I'm interested in having some details about what exactly is behaving differently as it happens that what we see on Ubuntu is precisely what is coded. :?
This is how it works on macOS and (currently, see above) on Ubuntu. I would prefer a point-on-object constraint for the third point as well, but tangent is ok too.
Attachments
threePtArc.webm
(499.82 KiB) Downloaded 28 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [workaround] (Dangerous) behavior from the sketcher

Post by openBrain »

chrisb wrote: Wed Jul 28, 2021 8:15 am This is how it works on macOS and (currently, see above) on Ubuntu. I would prefer a point-on-object constraint for the third point as well, but tangent is ok too.
I think there is some misundertanding. (If I'm correct) OP is specifically talking about behavior of 3-pt circle, not 3-pt arc.
To me 3pt-arc is pretty correct, but 3-pt circle is indeed pretty weird.
Could you have a check on 3-pt circle too ?
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: [workaround] (Dangerous) behavior from the sketcher

Post by chrisb »

I mixed things up: 3-point-circle acts as shown in your screen cast on macOS too. I don't think it's really weird. The only thing missing is a proposal for a tangent constraint for the first point.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply