Instability in part-design / solver

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
triplus
Posts: 9475
Joined: Mon Dec 12, 2011 4:45 pm

Re: Instability in part-design / solver

Postby triplus » Tue Apr 22, 2014 12:32 am

Even without adding tangent constraints to the 2nd drawing, as soon as you add a vertical or horizontal constraint the sketch
has only one solution, thus zero degrees of freedom. That said, I can see why the solver might not recognize it.
As already said it doesn't work like that. Simply put you need to do your job and that is to add constraints and solver needs to do its job and that is to calculate correctly if added constraints suffice to get fully constrained sketch.

In your example solver did the job correctly it informed you 1DOF still exist and multiple (constraint) solutions to solve that are possible. Adding tangent constraint to remove that remaining 1DOF is not the only option. Use different set of constraints and you will quickly notice sketcher is correct in both cases.
logari81
Posts: 654
Joined: Mon Jun 14, 2010 6:00 pm

Re: Instability in part-design / solver

Postby logari81 » Wed Apr 23, 2014 4:14 pm

1 equation, 2 unknowns:
x^2+y^2=0
but there is a unique solution:
x=0, y=0
it is the same case like the sketch discussed above. Mathematically these cases can be detected but practically it is not very recomendable to constraint sketches this way.