Definitioncore
Geometric constraint graph
Also called constraint graph of a sketch.
A graph with a vertex per geometric entity and an edge per constraint, weighted by degrees of freedom; graph-based solvers decompose it to plan the solution.
The geometric constraint graph of a sketch has a vertex for each geometric entity and an edge for each constraint between two entities. Each vertex carries the degrees of freedom of its entity, 2 for a point or a line in the plane, and each edge carries the number of degrees of freedom that its constraint removes. Graph-based solvers never look at the coordinates first. They find, on this graph, small parts that are rigid by themselves, solve those, and join the results. The counts on the graph also predict whether the sketch is well-constrained, under-constrained or over-constrained, for generic values.
Definition
Let a geometric constraint system in have entities and constraints , and let be the dimension of the group of rigid motions (3 in the plane, 6 in space).
Constraint graph. If every constraint involves two entities, the constraint graph is the weighted multigraph , where an edge joins the two entities of a constraint, is the number of DOF of entity , and is the weight of constraint , the number of independent equations it adds. Two constraints between the same pair, such as an incidence and a distance between a point and a line, give two parallel edges, or one edge whose weight is their sum. A constraint on one entity, such as a fixed radius, lowers the weight of its vertex.
Hypergraph and bipartite form. A constraint on three or more entities, such as " is the midpoint of and " (2 equations on 3 points), is a hyperedge. The general model is the bipartite graph with entity vertices on one side, constraint vertices on the other, and an edge when a constraint involves an entity. With one vertex per scalar unknown and per scalar equation instead, this is the graph on which the Dulmage-Mendelsohn decomposition works.
Density. For a set , let be the constraints with all their entities in . The density of is
The number is the count of DOF left to the entities of by their own constraints. A rigid part keeps exactly the DOF of a rigid motion. So, by the counts alone (for generic values, see below), the system is
- structurally well-constrained if and for every that is large enough to have the full group of motions,
- structurally over-constrained if some such has (a dense set),
- structurally under-constrained if and no set is dense.
"Large enough" excludes the sets with a smaller group of motions, such as one point, whose orbit has dimension 2 in the plane. For points with distance constraints in the plane, and , so on every points says that points span at most edges. This is the condition of Laman's theorem and of the Maxwell counting rule.
What the counts mean. The counts depend only on the graph. They are necessary for a regular solution, and for points and distances in the plane they are also sufficient for generic values (Laman). For other entities, and in space, the counts can pass while the system is not well-constrained, and the actual values can make any system degenerate. The page on well-constrained systems gives the exact definitions and the examples where the two notions differ.
Examples and non-examples
A sketch with a line. Take points , , and a line in the plane, with six constraints: on , on , , , , and the distance from to is 2. All vertex weights are 2 and all edge weights are 1.
| set | edges in | |
|---|---|---|
| , , | ||
| , , | ||
| all six |
The whole set is dense, so the system is over-constrained. The geometry agrees: and lie on at distance 4, so lies on the perpendicular bisector at height from , and the value 2 contradicts this. Without the last constraint, and the system is well-constrained, with two solutions, above or below .
Points and distances. For a sketch with points only, the constraint graph is the graph of the bar-and-joint framework, and the triangle-based solvers (Fudos-Hoffmann, Owen) work on it directly.
A ternary constraint. " and are symmetric about the line " is 2 equations on three entities. Replacing it by an edge of weight 2 hides the role of ; the hyperedge or the bipartite form keeps it.
Not a constraint graph: the drawing. The graph of the drawn segments of a sketch, with an edge for each segment between two end points, is not the constraint graph. A segment without a length has no distance constraint, and two points can have a distance constraint without a segment between them.
Not a constraint graph: the feature history. In feature-based modeling, the graph of which feature depends on which earlier feature is a dependency graph between whole features. Each sketch inside a feature has its own constraint graph.
Related definitions
- Geometric constraint and geometric constraint problem: the objects that the graph models.
- Degrees of freedom analysis: the counts on the graph, and how to find dense sets with flows.
- DR-plan: a hierarchy of rigid subgraphs of the constraint graph that tells a solver in which order to solve.
- Well-constrained system: the exact notion, and the structural notion that the counts test.
- The constraint graph of a finite constraint satisfaction problem is the same idea, with variables over finite domains and no rigid motions.
References
- 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 constraint graph with a vertex per geometric element and an edge per constraint, and its analysis for solvability (general locator)
- Christoph M. Hoffmann, Andrew Lomonosov and Meera Sitharam, Decomposition plans for geometric constraint systems, Part I, Performance measures for CAD, Journal of Symbolic Computation 31(4), 367 to 408, 2001, the weighted constraint graph, its density, and the dense, well-constrained and over-constrained subgraphs (general locator)
- Meera Sitharam, Audrey St. John and Jessica Sidman (editors), Handbook of Geometric Constraint Systems Principles, Chapman and Hall/CRC, 2018, the chapters on the combinatorics of constraint systems and on decomposition (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 graph and hypergraph models of a constraint system and the structural rigidity counts on them (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 RDTV4C Edit this page History Report an error Markdown