Geometric Contact Detection via Quadric Pencils

17 concepts10 papers2 proposals

Determining whether two curved objects overlap, touch, or remain separated is a foundational challenge in computer graphics, physical simulation, and computational geometry. The traditional approach relies on numerical optimization: computing the minimum distance between two surfaces and checking if it equals zero. However, iterative numerical solvers are computationally expensive and prone to precision errors, especially when surfaces are barely grazing each other.

An elegant alternative shifts the problem from geometry to algebra. By representing quadratic surfaces (quadrics) as matrices, we can construct a quadric pencil—a linear combination of the two surfaces—and analyze its characteristic polynomial. The roots and algebraic signatures of this polynomial reveal the exact spatial relationship between the objects instantly, bypassing distance calculations entirely.

The Geometry of Matrix Pencils

A quadric surface, such as an ellipsoid, can be defined implicitly by a quadratic form $x^T A x = 0$, where $A$ is a symmetric $4 \times 4$ matrix and $x$ represents homogeneous coordinates in 3D space. Given two quadrics, $A$ and $B$, their pencil is the family of all linear combinations:

$$P(\lambda) = A + \lambda B$$

Every value of $\lambda$ defines a new quadric surface that passes through the intersection curve of $A$ and $B$.

The core intuition behind this approach lies in the characteristic equation of the pencil:

$$\det(A + \lambda B) = 0$$

The roots of this polynomial correspond to the degenerate quadrics in the family—shapes like cones, cylinders, or pairs of planes where the matrix loses full rank. Because the intersection curve of $A$ and $B$ is intrinsically tied to the structure of these degenerate shapes, the number, multiplicity, and signs of the roots of $\det(A + \lambda B) = 0$ serve as an exact algebraic signature of how $A$ and $B$ relate in space.

[ Ellipsoid A ]  --- (Linear Combination: A + λB) --->  [ Degenerate Quadrics ]
[ Ellipsoid B ]                                         (Roots of det(A + λB) = 0)
                                                                    |
                                                                    v
                                                        Exact Spatial Relationship

Decoding Spatial Relationships from Polynomial Roots

In a seminal paper, Wang et al. demonstrated how the roots of the characteristic equation map directly to the physical separation of two ellipsoids. In An algebraic condition for the separation of two ellipsoids, the authors established a precise tri-fold classification based on the characteristic equation $\det(A + \lambda B) = 0$:

  1. Separation: The ellipsoids are completely disjoint if and only if the characteristic equation contains two distinct positive roots.
  2. External Tangency: The ellipsoids touch externally at a single point if and only if the equation contains a positive double root.
  3. Overlap or Containment: If there are no positive roots (or the roots are complex), the ellipsoids either intersect or one completely encloses the other.

To make this highly efficient for real-time applications, the authors showed that we do not even need to calculate the exact values of these roots. Instead, we can use Sturm sequences—an algebraic tool that counts the number of real roots in an interval by analyzing the sign changes of a sequence of derivative polynomials. This allows systems to verify separation or contact via simple arithmetic.

From Static Separation to Continuous Collision Detection

While identifying static separation is valuable, dynamic environments require knowing when a collision occurs. Traditional simulation steps forward in discrete time intervals, which can cause fast-moving objects to "tunnel" through each other undetected.

To solve this, Choi et al. extended quadric pencil analysis to Continuous Collision Detection (CCD). In Continuous Collision Detection for Composite Quadric Models, the authors tracked the matrices $A(t)$ and $B(t)$ as continuous functions of time.

As two objects move toward each other, their characteristic polynomial changes continuously. The exact moment of first contact corresponds to the transition from separation to overlap—the precise instant when two distinct positive roots merge into a single double root. By monitoring the Segre characteristic and the signature sequences of the roots over time, their framework identifies the exact timestamp and location of tangency, eliminating the geometric approximation errors inherent in triangle-mesh models.

The Broader Power of Algebraic Classification

The strategy of using polynomial roots and algebraic invariants to classify geometric configurations extends far beyond collision detection. It represents a broader mathematical philosophy: understanding complex geometric structures by analyzing the algebraic properties of their parameter spaces.

Conic Pencils and Tangency Bounds

The same pencil mechanics apply to 2D curves. Emiris et al. utilized the geometry of conic pencils in Algebraic study of the Apollonius circle of three ellipses. By modeling the tangency between a circle and an ellipse as a multiple real root of their conic pencil's characteristic polynomial, the authors bypassed high-degree distance equations to establish the first non-trivial upper bound of 184 tangent circles to three ellipses, accelerating the computation of Voronoi diagrams for curved objects.

Surface Morphology Classification

Pencils can also map out the entire morphological landscape of complex surfaces. In Enumerating the morphologies of non-degenerate Darboux cyclides, Zhao et al. used the algebraic structure of quadric pencils to systematically categorize Darboux cyclides (a class of algebraic surfaces of degree 4). By analyzing how the roots of the pencil change, they proved that these surfaces can take on exactly 14 distinct topological shapes, providing a complete structural atlas for geometric modeling.

Invariants in Higher Algebraic Geometry

This perspective mirrors foundational techniques in pure algebraic geometry, where varieties are classified using numerical and algebraic invariants rather than explicit coordinates:

Ultimately, whether proving why the universe has three generations of particles or calculating exactly when two ellipsoids collide in a game engine, the core insight remains the same: the deepest geometric truths of a system are often encoded in the algebraic invariants of its underlying polynomial equations.

Key Foundational Work

An algebraic condition for the separation of two ellipsoids (2001) — contributed 6 concept elements to this direction.
Algebraic study of the Apollonius circle of three ellipses (2005) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_quadric_pencil_analysis_225517b2,
  title = {quadric pencil analysis},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/quadric-pencil-analysis/rdr_225517b2ffdd435886c3430488d2abac},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_quadric_pencil_analysis_225517b2_v1,
  title = {quadric pencil analysis},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/quadric-pencil-analysis/rdr_225517b2ffdd435886c3430488d2abac/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake