Computational Geometry

Use a signed determinant to expose numerical failure near collinearity and connect adaptive exact predicates with arrangement construction.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
2 min
In this article3 chapters
  1. Orientation is the sign of a determinant
  2. A certified filter spends extra work near degeneracy
  3. Arrangements require consistent decisions between operations

Orientation is the sign of a determinant

For points \(a,b,c\) in the plane, define

\[ \Delta=(b_x-a_x)(c_y-a_y)-(b_y-a_y)(c_x-a_x). \]

A positive sign means \(c\) lies to the left of the directed line from \(a\) to \(b\), when the line is defined. The determinant is twice the signed area. Choosing \(a=(0,0),\ b=(1,1),\ c=(2,2+\eta)\) gives \(\Delta=\eta\). If the input has already rounded \(2+\eta\) to 2, even exact arithmetic judges the stored points collinear. Exact predicates resolve the geometry of the represented input. Measurement error is a separate model.

A certified orientation test decides the sign of one determinant. Segment intersection combines several such decisions with consistent endpoint rules before building larger arrangements.

A certified filter spends extra work near degeneracy

For floating-point inputs, compute a fast approximate determinant together with a rigorous error bound under the implementation’s arithmetic assumptions. If its magnitude exceeds that bound, its sign is reliable. Otherwise, adaptive expansion arithmetic or exact rational arithmetic can determine the sign of the represented inputs. A fixed geometric epsilon has a different meaning. Scaling coordinates by \(s\) multiplies the determinant by \(s^2\) and can change such a threshold’s answer even when orientation is unchanged.

Arrangements require consistent decisions between operations

An arrangement decomposes the plane into vertices, edges and faces induced by input curves. A segment sweep must compare event order and maintain the vertical ordering of active segments. Inconsistent signs can give contradictory ordering or miss an intersection. Exact predicates establish decisions, and exact constructions may also be needed when derived intersections are fed back as inputs. The worst-case arrangement size can be quadratic for segments with many crossings, so robust arithmetic does not eliminate output-sensitive cost. Differentiable rendering uses geometric visibility boundaries. Computer algebra studies more general sign-invariant decompositions for polynomial constraints.[1][2]

References

  1. Jonathan Richard Shewchuk, Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates ↩
  2. CGAL, 2D Arrangements User Manual ↩