[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!
Syres
Veteran
Posts: 2899
Joined: Thu Aug 09, 2018 11:14 am

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

Post by Syres »

openBrain wrote: Wed Jul 28, 2021 12:32 pm I submitted a PR
It passes my Hexagon test, thanks. That exclude tangent code has been in there for so many years I'm sure it's been forgotten about, but don't worry if it breaks something you'll be the first to know :lol:
openBrain
Veteran
Posts: 9041
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 11:33 am Yellow highlight is not enough. The small symbols are important.
Some more words on this.
Highlighting and auto-constraint symbols are really 2 separate processes.
Highlight comes as soon as something "eligible" is found inside the pick radius.
Cursor symbols only come when an auto-constraint suggestion exists.

We tend to mix both because there is (AFAIK) no case where no pertinent constraint exists between 2 types of geometry.
Except this is what happened there because tangent (which is IMO the correct constraint) was internally rejected for some obscure reason. ;)
Last edited by openBrain on Wed Jul 28, 2021 3:34 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

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

Post by chrisb »

thomas-neemann wrote: Wed Jul 28, 2021 12:36 pm i think the solution is very good. Many thanks
+1
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
M4x
Veteran
Posts: 1482
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

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

Post by M4x »

I like it, thank you!
User avatar
thomas-neemann
Veteran
Posts: 11919
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

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

Post by thomas-neemann »

openBrain wrote: Wed Jul 28, 2021 12:32 pm
here is something else that could be improved upon.

this is not dangerous because it generates an error message, but it could be solved similarly in my opinion.

video from a step import with the attempt to reference a circle.

https://www.youtube.com/watch?v=2DRn_RUXgu4



sketcher.FCStd
(4.83 KiB) Downloaded 35 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

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

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

Post by chrisb »

thomas-neemann wrote: Thu Jul 29, 2021 5:40 am but it could be solved similarly in my opinion.
I don't think so, because it's the opposite of what openBrain just implemented: In most cases we want a tangent if only edges are involved. And only in this very special case it leads to a problem and what we really want is an equality constraint.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
thomas-neemann
Veteran
Posts: 11919
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

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

Post by thomas-neemann »

chrisb wrote: Thu Jul 29, 2021 6:14 am
thomas-neemann wrote: Thu Jul 29, 2021 5:40 am but it could be solved similarly in my opinion.
I don't think so, because it's the opposite of what openBrain just implemented: In most cases we want a tangent if only edges are involved. And only in this very special case it leads to a problem.
ok
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

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

Post by openBrain »

thomas-neemann wrote: Thu Jul 29, 2021 5:40 am here is something else that could be improved upon.

this is not dangerous because it generates an error message, but it could be solved similarly in my opinion.

video from a step import with the attempt to reference a circle.
@chrisb said it all. This is a corner case where we have to rely on human brain to process it correctly. :)
User avatar
thomas-neemann
Veteran
Posts: 11919
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

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

Post by thomas-neemann »

openBrain wrote: Thu Jul 29, 2021 8:19 am
OK. if it is the same with circle 3 pts and an error message appears, it is harmless. Thank you
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: [workaround] (Dangerous) behavior from the sketcher

Post by GeneFC »

openBrain wrote: Thu Jul 29, 2021 8:19 am This is a corner case where we have to rely on human brain to process it correctly. :)
Open or closed brain? :lol:

Gene
Post Reply