Definitionintro
Geometric constraint
Also called dimensional constraint.
A relation between geometric elements, such as a distance, an angle, incidence, parallelism or tangency, that a sketch or an assembly must satisfy.
A geometric constraint is a relation between geometric entities, such as points, lines, circles, planes or rigid bodies, that a placement of these entities must satisfy. Typical constraints are a distance between two points, an angle between two lines, a point on a line, two parallel lines and a line tangent to a circle. In a CAD sketch the user draws an approximate shape and adds constraints, and a solver moves the entities until all constraints hold. Each constraint is a small set of equations in the coordinates, and these equations do not change when the whole sketch is rotated or translated. So a constraint fixes the shape, not the position of the sketch in the plane.
Definition
Fix the space , with for a sketch and for an assembly. Let be the group of proper rigid motions of , the rotations followed by translations (special Euclidean group). Its dimension is : 3 in the plane, 6 in space.
Entities. Each geometric entity has a type and a vector of real parameters. The number of free parameters is its degrees of freedom (DOF). A rigid motion acts on the parameters.
| entity | parameters | DOF |
|---|---|---|
| point in the plane | 2 | |
| line in the plane | unit normal and offset , the line | 2 |
| circle in the plane | center and radius | 3 |
| point in space | 3 | |
| plane in space | unit normal and offset | 3 |
| line in space | a direction and a point, up to the choice of the point | 4 |
| rigid body in space | a rotation and a translation | 6 |
A configuration is a choice of parameters for all entities, a vector , where is the sum of the DOF of the entities.
Constraint. A geometric constraint on entities is a system of equations
in the parameters of these entities only, such that each is invariant under : for all . The constants are the values of the constraint, such as a length or the cosine of an angle; for a relation without a value, such as incidence, they are 0. The number of independent equations is the number of DOF that the constraint removes, its weight. Most constraints are binary (). A constraint with , such as a fixed radius, restricts the shape of one entity.
The planar constraints of most sketchers, with the equations used here, are these.
| constraint | entities | equation | weight |
|---|---|---|---|
| distance | two points | 1 | |
| incidence | point , line | 1 | |
| distance to a line | point , line | 1 | |
| angle | two lines | and a choice of sign | 1 |
| parallel | two lines | 1 | |
| perpendicular | two lines | 1 | |
| tangency | line , circle | 1 | |
| tangency | two circles | 1 | |
| coincidence | two points | 2 |
In space, the weights are: coincidence of two points 3, a point on a plane 1, a point on a line 2, two coincident planes 3, two coaxial lines 4, two parallel planes 2, and one each for an angle, a perpendicularity and a distance. Kinematic pairs, the joints of a mechanism, are constraints between rigid bodies of the same kind.
Signs and branches. Many constraints have more than one branch: a tangent line can touch the circle on either side, and an angle constraint does not say whether the second line turns to the left or to the right. The equation defines the union of the branches. A solver chooses a branch by a sign in the user's draft, for example the sign of the orientation test of three points, computed exactly. This choice is the root identification problem.
Degenerate values. The weight is the number of equations, and it is the rank of their Jacobian only at regular points. A distance of 0 is the main trap: over the reals, forces , which removes 2 DOF, and the Jacobian of the equation is zero at every solution. CAD systems therefore treat a distance of 0 as a coincidence, with weight 2, and treat two parallel lines at angle 0 with the parallel constraint, not with the angle equation.
Examples and non-examples
- A distance. The points and satisfy the distance constraint with , since . Rotate both points by 90 degrees about the origin to and : the constraint still holds, because the squared distance is invariant.
- A tangency. The line has and . The circle with center and radius 2 satisfies , so the line touches this circle above its center. The circle with center and radius 2 also satisfies the equation, with the other sign, and the line touches it below its center. The two choices are two branches of one constraint.
- A bar. A set of points with distance constraints only is a bar-and-joint framework. Its theory of rigidity applies directly to such sketches.
- Not a geometric constraint: a fixed coordinate. The condition "the -coordinate of is 3" is not invariant under translations. It ties to the frame of the sheet. A sketcher models it as a constraint between and a fixed entity, such as the origin or a grounded axis, which removes the rigid motions.
- Not a geometric constraint: a side condition. The condition " is to the left of the line " is an inequality, not an equation. It does not remove a degree of freedom. Solvers use such conditions only to choose among the solutions of the equations.
- Not invariant under reflections. An oriented angle of degrees from to is invariant under proper motions but not under reflections. Distances are invariant under reflections too, so a system of distances only has the mirror image of each solution as a solution. For this reason the group here is the group of proper motions.
Related definitions
- A geometric constraint graph has a vertex for each entity and an edge for each constraint, weighted by DOF.
- A geometric constraint problem asks for a configuration that satisfies a given set of constraints.
- A system of constraints is well-constrained when it has finitely many solutions up to rigid motion.
- Degrees of freedom analysis counts the DOF of the entities against the weights of the constraints.
- A constraint satisfaction problem is the general version over finite domains; geometric constraints have real domains and are solved by algebra and numerical methods.
- In feature-based modeling, the sketches of the features carry geometric constraints, and the persistent naming problem arises when a constraint refers to an entity that a later change removes.
References
- Meera Sitharam, Audrey St. John and Jessica Sidman (editors), Handbook of Geometric Constraint Systems Principles, Chapman and Hall/CRC, 2018, the introductory chapters on geometric constraint systems, their entities and constraint types (general locator)
- Ioannis Fudos and Christoph M. Hoffmann, A graph-constructive approach to solving systems of geometric constraints, ACM Transactions on Graphics 16(2), 179 to 216, 1997, the planar entities (points and lines) and the distance, angle and incidence constraints of the solver (general locator)
- Glenn A. Kramer, Solving Geometric Constraint Systems, A Case Study in Kinematics, MIT Press, 1992, the geometric entities with their translational and rotational degrees of freedom, and the constraints between markers on rigid bodies (general locator)
- Christophe Jermann, Gilles Trombettoni, Bertrand Neveu and Pascal Mathis, Decomposition of geometric constraint systems, a survey, International Journal of Computational Geometry and Applications 16(5-6), 379 to 414, 2006, the definition of a geometric constraint system and the degrees of freedom of its objects and constraints (general locator)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag A0MCRT Edit this page History Report an error Markdown