Sketcher, tangent constraint bug

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!
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher, tangent constraint bug

Postby chrisb » Sat Aug 31, 2019 7:41 pm

kisolre wrote:
Sat Aug 31, 2019 5:28 pm
It looks like it fails with autoremoval and instead of just removing endpoints coincidence it also removes just applied end to end tangency.
It doesn't happen always. In the attached file the horizontal dimension is removed, which also is not what is expected. Because I was on the wrong track as well I give a recipe to reproduce:

- open Sketch in Sketcher
- check Auto remove redundants
- uncheck Auto upadate
- select arc and line - not any points!
- select tangent icon

Expected is a fully constrained sketch with a horizontal continuation of the arc. The length of the continuation should be 50.

Blue: edit
Attachments
AutoRemoveTangency.FCStd
(3.27 KiB) Downloaded 15 times
kisolre
Posts: 2269
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher, tangent constraint bug

Postby kisolre » Sat Aug 31, 2019 7:47 pm

chrisb wrote:
Sat Aug 31, 2019 7:41 pm
In the attached file the horizontal dimension is removed
Confirmed here.

Tried also to replace horizontal dimension with length constraint. Then when tangency is applied vertical constraint is removed.
Last edited by kisolre on Sat Aug 31, 2019 7:52 pm, edited 1 time in total.
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher, tangent constraint bug

Postby chrisb » Sat Aug 31, 2019 7:51 pm

And here is the file reproducing the issue from OP. The procedure is exactly the same as in my previous post. Expected is a fully constrained sketch with a quarter of an arc. Instead the coincidence and the tangency are removed leaving the sketch with 3 DOF.

Please confirm that you see the same issue, then I will create a ticket.
Attachments
AutoRemoveTangency2.FCStd
(3.58 KiB) Downloaded 19 times
kisolre
Posts: 2269
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher, tangent constraint bug

Postby kisolre » Sat Aug 31, 2019 7:54 pm

chrisb wrote:
Sat Aug 31, 2019 7:51 pm
Please confirm that you see the same issue, then I will create a ticket.
Confirmed
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher, tangent constraint bug

Postby chrisb » Sat Aug 31, 2019 7:59 pm

issue #4105. Thanks for the extremely fast cooperation!
kisolre
Posts: 2269
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher, tangent constraint bug

Postby kisolre » Sat Aug 31, 2019 8:30 pm

chrisb wrote:
Sat Aug 31, 2019 7:59 pm
issue #4105. Thanks for the extremely fast cooperation!
Link to forum post in the ticket is wrongly formated.
User avatar
Kunda1
Posts: 8417
Joined: Thu Jan 05, 2017 9:03 pm

Re: Sketcher, tangent constraint bug

Postby Kunda1 » Sat Aug 31, 2019 9:49 pm

kisolre wrote:
Sat Aug 31, 2019 8:30 pm
chrisb wrote:
Sat Aug 31, 2019 7:59 pm
issue #4105. Thanks for the extremely fast cooperation!
Link to forum post in the ticket is wrongly formated.
FTFY ;)
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher, tangent constraint bug

Postby chrisb » Sat Aug 31, 2019 10:33 pm

kisolre wrote:
Sat Aug 31, 2019 8:30 pm
Link to forum post in the ticket is wrongly formated.
Hm; it looks normal to me, and it works. What is wrong with it?
openBrain
Posts: 4621
Joined: Fri Nov 09, 2018 5:38 pm

Re: Sketcher, tangent constraint bug

Postby openBrain » Sat Aug 31, 2019 10:36 pm

chrisb wrote:
Sat Aug 31, 2019 10:33 pm
kisolre wrote:
Sat Aug 31, 2019 8:30 pm
Link to forum post in the ticket is wrongly formated.
Hm; it looks normal to me, and it works. What is wrong with it?
As said above, Kunda1 FTFY. :)
User avatar
Hartwig
Posts: 49
Joined: Thu Aug 01, 2019 3:26 pm
Location: Germany

Re: Sketcher, tangent constraint bug

Postby Hartwig » Sun Sep 01, 2019 7:57 am

I tested all three files of the thread and all worked correctly for me.

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17803 (Git)
Build type: Release
Branch: master
Hash: 89961a33d46063a43e9fb5b0308ca95d559eca94
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)