Sketcher Micro Tutorial - Constraint Practices/fr

Introduction
Ce tutoriel est destiné à aider le nouvel utilisateur de FreeCAD à se familiariser avec les techniques et meilleures pratiques pour contraindre une esquisse. Ce micro tutoriel est une copie améliorée d'un sujet posté sur le forum FreeCAD et placé ici pour un accès universel et plus pratique.

A Quick Explanation
There is a general rule with FreeCAD's sketcher constraints, the fewer amount of dimensional constraints, the better. It is always preferable to use a geometric constraint in place of a dimensional one if possible. This has to do with the internal workings of Sketcher's solver.

First Approach
As an example, take a square sketch. In the first screenshot, the sketch is fully constrained, but is using only dimensional, (distance), constraints. this is OK, but overly complicated, cluttered, and more math intensive for the solver. While this is not an issue with such a simple example, it can become one with more complex sketches.



A Better Way
The next screenshot is the same square, constrained using some geometric constraints. Using the horizontal and vertical geometric constraints, along with dimensional, (distance), constraints. By just using the horizontal and vertical geometric constraints, you can see the number of required dimensional constraints have been reduced. This is a better constrained sketch than the first, but is still not the optimum constraining scheme for this square.



Optimum Scheme
Now, in this last screenshot, there is only 1 dimensional, (distance), constraint, with the remaining constraints being geometrical. This is the best way to constrain this sketch. While with a simple sketch like this, one way or the other is no big deal, on larger and more complex sketches, sticking to the minimum dimensions rule will prove out to be beneficial to you and your endeavors constructing geometry with sketches. The geometrical constraints used in this sketch are horizontal, vertical, equal, and symmetry.



Additional Resources
Sketcher

Sketcher Tutorial