Abstract
Computing occluding contours is a key building block of non-photorealistic rendering, but producing contours with consistent visibility has been notoriously challenging. This paper describes the first general-purpose smooth surface construction for which the occluding contours can be computed in closed form. For a given input mesh and camera viewpoint, we produce a $G^1$ piecewise-quadratic surface approximating the mesh. We show how the image-space occluding contours of this representation may then be described as piecewise rational curves. We show that this method produces smooth contours with consistent visibility much more efficiently than the state-of-the-art.
Introduction: The Challenge of Silhouettes
In the field of non-photorealistic rendering (NPR), the "occluding contour"—the silhouette where a 3D object’s surface curves away from the viewer—is arguably the most critical visual element. It defines shape, volume, and boundary in architectural sketches, technical illustrations, and stylized animation. While the mathematical definition is straightforward—points where the surface normal is perpendicular to the view direction—robustly computing these lines in practice has remained a significant hurdle.
Triangle meshes, the standard representation in computer graphics, produce jagged, "noisy" contours that follow the discrete edges of the geometry. These are unsuitable for clean artistic stylization. Conversely, while smooth mathematical surfaces (like splines) offer the desired aesthetic, calculating their contours and visibility typically requires expensive numerical sampling or iterative solvers. These methods often suffer from topological inconsistencies, such as gaps in lines or physically impossible overlaps. This paper introduces a novel approach that transforms this numerical struggle into an efficient algebraic solution.
Methodology: The Algebraic Pipeline
The core contribution of this work is the identification of a "mathematical sweet spot" for surface representation: the piecewise-quadratic surface. By approximating an input mesh with these specific patches, the authors can solve for contours analytically.
The process follows a multi-stage pipeline:
- Projective Transformation: To accommodate perspective cameras, the mesh is first transformed into a space where the perspective view is equivalent to an orthographic one. This simplifies the subsequent geometric calculations.
- Conformal Parameterization: The 3D mesh is mapped to a 2D domain, establishing a coordinate system for defining a smooth surface over the original geometry.
- Powell-Sabin Construction: The mesh is approximated using a $G^1$ (tangent-plane continuous) surface composed of piecewise-quadratic patches.
- Algebraic Contour Extraction: This is the pivotal step. Because the surface is quadratic, the equation defining the contour (where the normal dot view direction equals zero) is also quadratic. This allows the contours to be computed exactly as rational curves (conic sections) in closed form.
- Quantitative Invisibility (QI): To determine which segments of the computed curves are visible, the authors employ a robust visibility algorithm. Because the curves are algebraic, critical points like cusps and self-intersections can be calculated with high precision.
Key Insights: Why Quadratics?
The choice of quadratic patches is deliberate. Linear surfaces (meshes) are too simple, leading to $C^0$ continuity and jagged lines. Higher-order surfaces, such as cubics, result in contour equations that lack simple closed-form solutions, necessitating the very numerical methods the authors seek to avoid. Quadratic patches provide the "Goldilocks" solution: they are smooth enough for $G^1$ continuity but simple enough to remain algebraically tractable.
Furthermore, the authors embrace a view-dependent approximation. Rather than building a single static smooth surface, they rebuild the approximation for each new camera viewpoint. While this might seem computationally expensive, the use of precomputed matrix factorizations (specifically Cholesky decomposition) allows the system to update the surface via a fast linear solve, maintaining high performance even during interactive camera movements.
Results and Performance
The method was evaluated against a diverse dataset of organic and geometric models, including the "Fertility" and "Spot" (cow) meshes. The results demonstrate a significant leap in efficiency:
- Speed: The algebraic approach is approximately 10x to 60x faster than ConTesse, the previous state-of-the-art. For instance, the "Fertility" model is processed in 0.4 seconds, compared to 16 seconds with previous methods.
- Scalability: Performance scales linearly with the complexity of the input mesh.
- Robustness: The method maintains topological consistency even under extreme perspective distortion, avoiding the "non-rigid" artifacts common in other view-dependent techniques.
Conclusion and Future Directions
By leveraging the algebraic properties of piecewise-quadratic surfaces, this work provides a robust and efficient solution for generating smooth, topologically consistent occluding contours. While the current implementation requires a global 2D parameterization—which can be challenging for extremely complex or "dirty" geometry—it sets a new standard for NPR line rendering. Future work may extend this framework to "suggestive contours" and other view-dependent line types to further enrich the toolkit for stylized 3D rendering.
Summary updated