FreeCAD 0.18.2 -- 3 JPG images attached.
First I draw two over lapping rectangles.
Then I use the trim tool to remove a line segment. Its OK.
Then I trim a 2nd line.
Notice that now a 'Tangent Constraint appears below the two horizontal lines.
This seems wrong. A horizontal constraint would be correct.
Can someone help explain this ? Thanks.
Rich
Tangent Constraint seems wrong
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!
Re: Tangent Constraint seems wrong
Hi rich61, welcome on the forum.
That's a bit of maths but actually it's correct.
Doing it short, a tangency between 2 lines means they are colinear, which is the expected.
There have been discussions in the past about making it clearer, but nothing get out of them ATM.
That's a bit of maths but actually it's correct.
Doing it short, a tangency between 2 lines means they are colinear, which is the expected.
There have been discussions in the past about making it clearer, but nothing get out of them ATM.
Re: Tangent Constraint seems wrong
please also understand that Sketcher Trim tool is something that you should not normally need to use. In ten years I have never once personally found a need or use case for it. If you are operating sketcher as a sketcher with constraints etc. why would you ever use Trim? It seems to me that its just people coming from old fashioned 2d CAD trying to use this old way of drawing that really very rarely makes sense in modern 3d modelling.
for example
Trim has to guess what out come you want, it generally does reasonably well at doing so, but you are asking for problems. Best to just model what you want in the first place, in most cases.
for example
Why would you do that? Why not just create the outline with a PolyLine?
Trim has to guess what out come you want, it generally does reasonably well at doing so, but you are asking for problems. Best to just model what you want in the first place, in most cases.
Re: Tangent Constraint seems wrong
Thank you openBrain, mathematically correct, it is tangent. I played with Alibre long ago, and they had a colinear constraint I think. Had an icon like this -- -- I feel better knowing that it is correct, but it is still a bit jarring to think of anything tangent without a curve.
jmaustpc, I will try to get used to not using trim, it used to be one of my favorite tools. I imagine that trim produces lots of fixups in the data base also.
Just learning,
Thanks
jmaustpc, I will try to get used to not using trim, it used to be one of my favorite tools. I imagine that trim produces lots of fixups in the data base also.
Just learning,
Thanks
Re: Tangent Constraint seems wrong
Hi rich61 and welcome! In your example a Horizontal Constraint would only be partially correct because in order to keep the line segments co-linear (without using a Tangency Constraint) you'd still have to apply a Point On Edge Constraint.
And, of course, the added Tangency Constraint also works if you Trim a line segment that isn't only Horizontal or Vertical.
I can create the Sketch much faster that way. I guess Normand thinks so too:
Re: Tangent Constraint seems wrong
I don't know anything about how the CAD data is structured and how it is modified as we make edit changes. The polyline method might be cleaner. But I still like trim, sometimes the easiest way to make sure you connect something is to go beyond it then trim.
I also am happy to know that tangent is also co-linear. I drew a horizontal line and then a second one to the right and above and applied the tangent constraint to both, and they lined up. Then I created a first horizontal line then a second angled line, and the tangent constraint lined them up and made the second horizontal also.
I would never have guessed that tangent = co-incident. It would be cheap to just add another icon to the constraints menu for co-incident [ -- -- ].
Great to learn that tip on the forum today.
I also am happy to know that tangent is also co-linear. I drew a horizontal line and then a second one to the right and above and applied the tangent constraint to both, and they lined up. Then I created a first horizontal line then a second angled line, and the tangent constraint lined them up and made the second horizontal also.
I would never have guessed that tangent = co-incident. It would be cheap to just add another icon to the constraints menu for co-incident [ -- -- ].
Great to learn that tip on the forum today.
Re: Tangent Constraint seems wrong
As said by jmaustpc, I also believe it is more a method coming from the old 2D drafting.
The surest method to get coincidence is to select both endpoints and set ... coincidence constraint.
An advantage of that is if you choose tangent instead of coincidence, you'll have both constraints (tangency + coincidence) in one shot. Same apply choosing perpendicular instead of coincidence.
I did a first proposal here in the past => https://forum.freecadweb.org/viewtopic. ... 10#p292977I would never have guessed that tangent = co-incident. It would be cheap to just add another icon to the constraints menu for co-incident [ -- -- ].
I never had much feedback, and shall admit that I put that in stand by... I'll try to open the ticket soon so this isn't lost.
If you're interested in going a bit further, in the same thread @abdullah explained haw line-line tangency is implemented inside the solver.
Re: Tangent Constraint seems wrong
openBrain
I read the post you referenced.
H: Considering a line is an arc with an infinite radius, that's pretty normal that tangency leads to colinearity.
That made the light go on.
Rich
I read the post you referenced.
H: Considering a line is an arc with an infinite radius, that's pretty normal that tangency leads to colinearity.
That made the light go on.
Rich