Sketcher solver issue
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Sketcher solver issue
I have the attached Sketch derived from another forum post. It is fully constrained and seems to be ok. However, if I remove constraints 15, 28, 33 it becomes overconstraint.
Seems to be related to issue #4284, yet it is different. Can you please verify. In case you can do so, is it a new ticket?
Seems to be related to issue #4284, yet it is different. Can you please verify. In case you can do so, is it a new ticket?
- Attachments
-
- hiddenOverconstraint.FCStd
- (5.83 KiB) Downloaded 20 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- Shalmeneser
- Veteran
- Posts: 8220
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: Sketcher solver issue
Which sketch ?
remove : 15 then 28 then 33 --or-- 33 then 28 then 15 ?
- adrianinsaval
- Veteran
- Posts: 5369
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Sketcher solver issue
problem seems to be with constraint 28 removing the other 2 was not necessary but it also happened if I removed them, even when it's shown as over constrained I could move the sketch and when releasing the mouse it would show as under constrained
Code: Select all
OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.26620 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 813e2cc)
Hash: 813e2cc66e0a5d3dc6ff203adceff3ddd65b4288
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United Kingdom (en_GB)
- Attachments
-
- sketch.gif (476.49 KiB) Viewed 1325 times
Re: Sketcher solver issue
Sorry, uploaded wrong file. It may take a while, I probably didn't save.Shalmeneser wrote: ↑Wed Dec 15, 2021 8:07 pmWhich sketch ?
remove : 15 then 28 then 33 --or-- 33 then 28 then 15 ?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Sketcher solver issue
I updated the file above. I had meant to remove all three at once - or from higher to lower.
It is indeed sufficient to remove Constraint28 to show the issue.
It is indeed sufficient to remove Constraint28 to show the issue.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Sketcher solver issue
The problem is that equality constraints 29 and 32 are the same. One of them is redundant and the solver missed that this constraint exist 2 times.
Re: Sketcher solver issue
So it is indeed the same issue as 4284.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Sketcher solver issue
When I open the file of this bug with latest 0.20, it indicates that sketch has partially redundant constraints (just as it is in the file).
I'm afraid maybe solver has actually no real issue but the sketch is badly constrained by some way. Will try to investigate later.
- thomas-neemann
- Veteran
- Posts: 9978
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE
Re: Sketcher solver issue
if you mirror the sketch, such an effect also occurs. does that help isolate the error?
- thomas-neemann
- Veteran
- Posts: 9978
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE