Algorithm Search⌘K

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 Rd\mathbb{R}^d have entities VV and constraints EE, and let D=d(d+1)/2D = d(d + 1)/2 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 G=(V,E,w)G = (V, E, w), where an edge e=uve = uv joins the two entities of a constraint, w(v)w(v) is the number of DOF of entity vv, and w(e)w(e) is the weight of constraint ee, 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 "mm is the midpoint of pp and qq" (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 S⊆VS \subseteq V, let E(S)E(S) be the constraints with all their entities in SS. The density of SS is

ρ(S)=∑e∈E(S)w(e)−∑v∈Sw(v).\rho(S) = \sum_{e \in E(S)} w(e) - \sum_{v \in S} w(v).

The number −ρ(S)-\rho(S) is the count of DOF left to the entities of SS by their own constraints. A rigid part keeps exactly the DD DOF of a rigid motion. So, by the counts alone (for generic values, see below), the system is

  • structurally well-constrained if ρ(V)=−D\rho(V) = -D and ρ(S)≤−D\rho(S) \le -D for every SS that is large enough to have the full group of motions,
  • structurally over-constrained if some such SS has ρ(S)>−D\rho(S) > -D (a dense set),
  • structurally under-constrained if ρ(V)<−D\rho(V) < -D 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, w(v)=2w(v) = 2 and w(e)=1w(e) = 1, so ρ(S)≤−3\rho(S) \le -3 on every k≥2k \ge 2 points says that kk points span at most 2k−32k - 3 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 AA, BB, CC and a line LL in the plane, with six constraints: AA on LL, BB on LL, ∣AB∣=4\lvert AB \rvert = 4, ∣AC∣=3\lvert AC \rvert = 3, ∣BC∣=3\lvert BC \rvert = 3, and the distance from CC to LL is 2. All vertex weights are 2 and all edge weights are 1.

set SS edges in SS ρ(S)\rho(S)
{A,B,C}\{A, B, C\} ABAB, ACAC, BCBC 3−6=−33 - 6 = -3
{A,B,L}\{A, B, L\} ALAL, BLBL, ABAB 3−6=−33 - 6 = -3
{C,L}\{C, L\} CLCL 1−4=−31 - 4 = -3
{A,B,C,L}\{A, B, C, L\} all six 6−8=−26 - 8 = -2

The whole set is dense, so the system is over-constrained. The geometry agrees: AA and BB lie on LL at distance 4, so CC lies on the perpendicular bisector at height 9−4=5\sqrt{9 - 4} = \sqrt{5} from LL, and the value 2 contradicts this. Without the last constraint, ρ(V)=−3\rho(V) = -3 and the system is well-constrained, with two solutions, CC above or below LL.

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. "pp and qq are symmetric about the line ll" is 2 equations on three entities. Replacing it by an edge pqpq of weight 2 hides the role of ll; 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.

References

  1. 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)
  2. 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)
  3. 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)
  4. 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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/RDTV4C/text.yaml