Sum-of-squares geometry processing

Zoë Marschner, Paul Zhang, David R. Palmer, Justin Solomon

Introduction

Most contemporary geometry processing in computer graphics and animation relies on triangle meshes. While triangles are mathematically simple and computationally efficient for basic tasks like distance queries or intersection tests, they are often insufficient for high-precision fields like Computer-Aided Design (CAD) and engineering. In these domains, surfaces are typically represented as higher-order polynomial patches, such as Bézier curves or NURBS. These representations are far more efficient at describing smooth, complex shapes with minimal control points, but they introduce significant mathematical challenges for fundamental geometric kernels.

The SOS framework applied to diverse geometric problems: self-intersection detection in CAD models (left), continuous collision detection in complex scenes (center), and tight bounding volume generation (right).

Existing solutions for curved surfaces often resort to "linearization"—tessellating the surface into millions of tiny triangles—or local optimization techniques that are prone to getting stuck in local minima. This paper introduces a unified framework that addresses these issues by leveraging Sum-of-Squares (SOS) optimization to solve geometric problems directly on polynomial patches with certifiable global optimality.

Methodology

The core of the proposed framework is the transformation of non-convex geometric problems into convex semidefinite programs (SDPs) via SOS relaxation.

Polynomial Patch Representation

The framework operates on surfaces defined by a mapping from a 2D domain to 3D space. For example, a triangular Bézier patch maps a 2D triangle domain $D$ to a curved surface in $\mathbb{R}^3$ using a set of control points.

A mapping $\mathbf{x}$ from a 2D triangular domain $\mathbb{D}$ to a 3D polynomial patch defined by control points $p_1$ through $p_6$.

SOS and Semidefinite Programming

The authors utilize SOS programming to create a robust global solver. The central idea is to replace a difficult constraint—such as ensuring a polynomial is positive over its entire domain—with a more tractable one: proving the polynomial can be expressed as a sum of squared polynomials. These SOS problems are then converted into SDPs, a class of convex optimization that can be solved in polynomial time.

A Unified Template

The framework provides a general mathematical template for minimizing a polynomial objective over a domain defined by polynomial inequalities. The authors demonstrate that a wide variety of tasks, including Continuous Collision Detection (CCD), finding the Closest Point (CP), and calculating the Minimal Enclosing Ellipsoid (MEE), can all be mapped to this single template. For rational surfaces like NURBS, a "denominator clearing" technique is employed to maintain the polynomial structure required for SOS.

Results and Evaluation

The framework was evaluated across several benchmarks, including randomized trials, standard graphics models (e.g., the Bézier teapot and an elephant model), and real-world CAD data.

  • Robustness and Accuracy: In randomized trials of 1,000 test cases per problem type, the method achieved 100% accuracy for tasks like collision detection and closest point queries, typically requiring an SOS degree between 3 and 6.
  • Precision: For Surface-Surface Intersection (SSI), the method identified intersection points with high precision (errors as low as $6.7 \times 10^{-5}$), even before reaching theoretical "exact recovery."
  • Tight Bounding Volumes: The MEE solver produced significantly tighter bounding volumes for curved patches compared to standard Axis-Aligned Bounding Boxes (AABBs), which is critical for efficient spatial partitioning.

Discussion and Future Work

While the framework offers unprecedented robustness and global optimality, it faces challenges regarding computational cost. Solving SDPs is more expensive than traditional triangle-based kernels; complex CCD tasks on cubic patches can take seconds or minutes. Furthermore, the size of the SDP grows factorially with the degree and number of variables, limiting scalability for very high-degree polynomials or massive scenes.

Future research directions include the development of specialized hardware acceleration or GPU-based SDP solvers to improve performance. Additionally, the authors aim to extend the framework to handle more complex "min-max" structures, such as those required for ensuring surface injectivity under perturbation.

Summary updated

BibTeX
@article{marschner2021sum,
  author = {Zoë Marschner and Paul Zhang and David R. Palmer and Justin Solomon},
  title = {{Sum-of-squares geometry processing}},
  journal = {ACM Trans. Graphics},
  year = {2021},
  doi = {10.1145/3478513.3480551},
}
Figure