Sketch fillet breaks 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!
Post Reply
gouach
Posts: 1
Joined: Thu May 09, 2019 10:44 am

Sketch fillet breaks constraints

Post by gouach »

Hello,
i'm running freecad 0.18-16110 and i try to fillet a rectangle whose size is constraint by distance constraints on its edges. I've noticed that when i use the fillet on this rectangle, it makes the edges disapear and thus the constraints on the size of the rectangle are broken (you can see that as you change the fillet radius, it changes the size of the rectangle).

Is this a bug or I'm i using freecad badly.
thanks for your help.
best
chrisb
Veteran
Posts: 54291
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketch fillet breaks constraints

Post by chrisb »

Hi gouach, welcome to the forum.
This is a known issue. The point where the dimension is hooked to is removed and with it the dimension constraint.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
quick61
Veteran
Posts: 3803
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Sketch fillet breaks constraints

Post by quick61 »

Funny, but I had always looked at it as almost a feature. When one applies a fillet to a constrained sharp angle, FreeCAD has no idea what the radius of the fillet is going to be, so the constraint must be removed to accommodate it's placement, otherwise the radius would need to end up infinitely small in order to maintain the preexisting dimension, would it not?

Not arguing, just an observation from another perspective. I have always come at Sketcher as something that one first "sketches" out the complete rough shape, then applies the dimensioning to constrain. If a fillet is forgotten in a corner, FreeCAD is kind enough to apply it, (the fillet), and remove the constraint(s) that would otherwise be in the way. After all, how is the program suppose to know whether or not one wants a constraint on the dimension that comes before or after the fillet radius?

Mark

Oh, I say "FreeCAD is kind enough to apply it, (the fillet), and remove the constraint(s)" as sort of a personification. The constraint is lost because the coincident that it was attached to is removed/deleted and 2 new coincidents are created. With the law of averages on our side, if FreeCAD were to guess which new vertex to attach the preexisting constraint, 50% of the time it would get it wrong.
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
HarryGeier
Veteran
Posts: 1231
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: Sketch fillet breaks constraints

Post by HarryGeier »

idea:

sketch on middle plane of the element, constraints will stay when upper/ower faces get fillets. If the fillets need to be constructive and parallel to the plane of orign, use sketchers fillet instead of part designs fillet ( obviously you need constructions lines then )..which..could be the solution anyway..i will make a try..

it works, The referencing lines endpoints are not influenced by the fillets. The real edges are just constrained as beein vertically/horizontally to the helper lines
Attachments
2019-05-09 17_53_00-FreeCAD 0.18.png
2019-05-09 17_53_00-FreeCAD 0.18.png (60.37 KiB) Viewed 1840 times
trickwithfillets.FCStd
(23.12 KiB) Downloaded 36 times
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
chrisb
Veteran
Posts: 54291
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketch fillet breaks constraints

Post by chrisb »

In the case of a rectangle with horizontal/vertical lines there could be a sensible replacement for a removed vertical or horizontal constraint. But as soon as it is tilted it becomes clear that this is no longer possible.

So Mark is right, a general strategy can only be to delete the constraint; thus it is rather a feature.

Before filleting:
Bildschirmfoto 2019-05-09 um 23.04.03.png
Bildschirmfoto 2019-05-09 um 23.04.03.png (10.44 KiB) Viewed 1826 times
.

After filleting, where should the constraint go?
Bildschirmfoto 2019-05-09 um 23.04.56.png
Bildschirmfoto 2019-05-09 um 23.04.56.png (9.67 KiB) Viewed 1826 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Sketch fillet breaks constraints

Post by openBrain »

IIRC in SolidWorks, the trimmed line segments are replaced by colinear construction ones so constraints are kept.
In FC world it would give something like that (left before filleting, right after) :
filleting.png
filleting.png (12.27 KiB) Viewed 1820 times
However this isn't IMO the worst case as it is understandable that a dimension constraint can be lost.
What I find a pity is that the sketcher isn't able to "explode" a point-point perpendicularity to keep it when filleting.
With pictures : in the case of a coincidence + line-line perpendicularity => perpendicular constraint is kept when filleting
filleting_llp.png
filleting_llp.png (6.2 KiB) Viewed 1820 times
In the case of a point-point perpendicularity => perpendicular constraint is (unfortunately) lost
filleting_ppp.png
filleting_ppp.png (4.58 KiB) Viewed 1820 times
Post Reply