Algorithm Search⌘K

Theoremadvanced

Sederberg-Meyers loop detection

Also called loop detection criterion for surface intersection.

If a plane through the origin meets the tangent cones of two patches only at the origin, the patches cannot meet in a closed loop, so subdivision can stop without missing small loops.

The Sederberg-Meyers loop test tells when two surface patches cannot meet in a closed loop. It looks at the cone of all tangent planes of each patch. If one plane through the origin meets the two cones only at the origin, there is no loop, and every branch of the intersection runs to the boundary of a patch. A subdivision method uses the test to stop splitting a pair of pieces, because the boundary curves then give a start point on every branch.

Statement

A patch is a set S=x(D)S = x(D), where DD is a closed rectangle and xx is a C1C^1 map on an open set that contains DD, one to one on DD, with xu×xv≠0x_u \times x_v \ne 0. Its tangent plane at p=x(u,v)p = x(u, v) is the plane T(p)T(p) through the origin spanned by xux_u and xvx_v, and its unit normal N(p)N(p) is normal to T(p)T(p). The tangent cone of the patch is the union K=⋃p∈ST(p)K = \bigcup_{p \in S} T(p) of all its tangent planes. A closed curve in a set is a C1C^1 map cc from a circle into the set with c′≠0c' \ne 0 everywhere.

For two lines through the origin, ∠(ℓ,m)∈[0∘,90∘]\angle(\ell, m) \in [0^\circ, 90^\circ] is the angle between them.

Theorem. Let S1S_1 and S2S_2 be patches with tangent cones K1K_1 and K2K_2. Assume that there is a vector w≠0w \ne 0 with

w⊥∩K1∩K2={0}.w^\perp \cap K_1 \cap K_2 = \{0\}.
  1. No loop. No closed curve lies in S1∩S2S_1 \cap S_2.
  2. Branches reach the boundary. At every common point the tangent planes differ. If the patches are C∞C^\infty, every connected component of the set of common points that are interior to both patches is a C1C^1 curve that is not closed, and its limit points at both ends lie on the boundary of S1S_1 or of S2S_2.

Corollary (normal cones). Let a1a_1 and a2a_2 be unit vectors, let φ=∠(a1,a2)\varphi = \angle(a_1, a_2), and assume that ∠(Ni(p),ai)≤αi\angle(N_i(p), a_i) \le \alpha_i for every point pp of SiS_i, for i=1,2i = 1, 2. If

α1+α2<φ,\alpha_1 + \alpha_2 < \varphi,

the hypothesis of the theorem holds with w=a1×a2w = a_1 \times a_2, so the patches do not meet in a closed curve. The condition says that the double cones {v:∠(v,ai)≤αi}\{v : \angle(v, a_i) \le \alpha_i\} meet only at the origin.

In plain words

Every surface has, at each point, a flat plane that just touches it. Collect all these touching planes of one patch, moved to a common point. They fill a region of directions in which the patch can run.

If two patches meet in a closed loop, the loop runs in a direction that both patches allow, and it turns all the way round. So it runs in every direction of some flat plane, at least once. The test looks for one flat plane that has no direction that both patches allow. If such a plane exists, a closed loop is not possible.

In a subdivision method, this means that a pair of small pieces can only meet in curves that start and end on the edges of the pieces. To find all of them, it is sufficient to look along the edges.

Proof

Part 1. Let cc be a closed curve in S1∩S2S_1 \cap S_2. For each ii, the curve cc lies in Si=xi(Di)S_i = x_i(D_i), and xix_i is a C1C^1 embedding of a neighborhood of DiD_i, so c′(t)c'(t) is in the tangent plane Ti(c(t))T_i(c(t)). Thus

c′(t)∈T1(c(t))∩T2(c(t))⊆K1∩K2for every t.c'(t) \in T_1(c(t)) \cap T_2(c(t)) \subseteq K_1 \cap K_2 \quad \text{for every } t.

The function h(t)=w⋅c(t)h(t) = w \cdot c(t) is continuous on a circle, so it has a maximum at some t0t_0. As hh is differentiable, h′(t0)=w⋅c′(t0)=0h'(t_0) = w \cdot c'(t_0) = 0, so c′(t0)∈w⊥∩K1∩K2={0}c'(t_0) \in w^\perp \cap K_1 \cap K_2 = \{0\}. This is not possible, because c′≠0c' \ne 0.

Part 2. Assume T1(p)=T2(p)=TT_1(p) = T_2(p) = T at a common point pp. Two planes through the origin in R3\mathbb{R}^3 meet in at least a line, so T∩w⊥T \cap w^\perp holds a vector v≠0v \ne 0. Then v∈T1(p)∩T2(p)⊆K1∩K2v \in T_1(p) \cap T_2(p) \subseteq K_1 \cap K_2, against the hypothesis. So the tangent planes differ at every common point.

Now let the patches be C∞C^\infty, and let MM be the set of common points that are interior points of both patches. Near p∈Mp \in M, write S2S_2 as the zero set of a C∞C^\infty function gg with ∇g(p)≠0\nabla g(p) \ne 0, so that T2(p)=∇g(p)⊥T_2(p) = \nabla g(p)^\perp. Since T1(p)≠T2(p)T_1(p) \ne T_2(p), the plane T1(p)T_1(p) is not in ∇g(p)⊥\nabla g(p)^\perp, so the restriction of gg to S1S_1 has a nonzero differential at pp. By the implicit function theorem, MM is a smooth curve near pp. So MM is a smooth 1-manifold, and each connected component is diffeomorphic to a circle or to an open interval [Milnor, Appendix]. A component that is a circle is a closed curve in S1∩S2S_1 \cap S_2, which part 1 excludes. So each component is the image of a smooth embedding γ\gamma of an open interval (t−,t+)(t_-, t_+).

Let qq be a limit point of γ(tk)\gamma(t_k) with tk→t+t_k \to t_+; it exists because S1∩S2S_1 \cap S_2 is compact, and q∈S1∩S2q \in S_1 \cap S_2. If q∈Mq \in M, then near qq the set MM is one arc, so γ(tk)\gamma(t_k) for large kk lies on the component of qq, which is then the component of γ\gamma. As γ\gamma is a homeomorphism onto its image, tkt_k tends to γ−1(q)\gamma^{-1}(q), which is less than t+t_+. That is a contradiction, so q∉Mq \notin M, and qq is a boundary point of S1S_1 or of S2S_2. The same holds at t−t_-. □\square

Corollary. As φ>0\varphi > 0, the vectors a1a_1 and a2a_2 are independent, w=a1×a2≠0w = a_1 \times a_2 \ne 0, and w⊥w^\perp is the plane PP spanned by a1a_1 and a2a_2. The angle ∠\angle between lines is a metric, so it satisfies the triangle inequality. Let v≠0v \ne 0 be in P∩K1∩K2P \cap K_1 \cap K_2, and let ℓ\ell be its line. As v∈K1v \in K_1, vv lies in some T1(p)T_1(p), so ∠(ℓ,N1(p))=90∘\angle(\ell, N_1(p)) = 90^\circ, and

90∘≤∠(ℓ,a1)+∠(a1,N1(p))≤∠(ℓ,a1)+α1.90^\circ \le \angle(\ell, a_1) + \angle(a_1, N_1(p)) \le \angle(\ell, a_1) + \alpha_1.

Let mim_i be the line in PP normal to aia_i. In the plane PP, ∠(ℓ,m1)=90∘−∠(ℓ,a1)≤α1\angle(\ell, m_1) = 90^\circ - \angle(\ell, a_1) \le \alpha_1, and in the same way ∠(ℓ,m2)≤α2\angle(\ell, m_2) \le \alpha_2. The quarter turn in PP maps aia_i to mim_i, so ∠(m1,m2)=φ\angle(m_1, m_2) = \varphi. Then

φ=∠(m1,m2)≤∠(m1,ℓ)+∠(ℓ,m2)≤α1+α2,\varphi = \angle(m_1, m_2) \le \angle(m_1, \ell) + \angle(\ell, m_2) \le \alpha_1 + \alpha_2,

against the assumption. So P∩K1∩K2={0}P \cap K_1 \cap K_2 = \{0\}.

For the last sentence: if vv is in both double cones, φ≤∠(v,a1)+∠(v,a2)≤α1+α2\varphi \le \angle(v, a_1) + \angle(v, a_2) \le \alpha_1 + \alpha_2. Conversely, if α1+α2≥φ\alpha_1 + \alpha_2 \ge \varphi, the line in PP between a1a_1 and a2a_2 at the angle min⁡(α1,φ)\min(\alpha_1, \varphi) from a1a_1 is at the angle φ−min⁡(α1,φ)≤α2\varphi - \min(\alpha_1, \varphi) \le \alpha_2 from a2a_2, so it lies in both cones. ■\blacksquare

Consequences

  • A stop test for subdivision. For a pair of pieces from a subdivision, bound the normals of each piece by a cone with axis aia_i and half angle αi\alpha_i. For a Bézier piece, such a cone can be computed from the control points of its normal patch (Kim, Papalambros and Woo). If α1+α2<φ\alpha_1 + \alpha_2 < \varphi, the pair holds no closed loop, so it is not split again.
  • Start points from the boundary. When the test passes, part 2 shows that every branch inside the pair has its ends on the boundary curves of the pieces. A curve surface intersection of each boundary curve of one piece with the other piece finds a point on every branch, and marching from these points traces them all. This is the hybrid method of the surface surface intersection page.
  • When the test passes. Choose aia_i as the normal at a point of the piece, and αi\alpha_i as the largest angle from it. As two pieces shrink to points pp and qq with ∠(N1(p),N2(q))>0\angle(N_1(p), N_2(q)) > 0, continuity of the normals gives α1,α2→0\alpha_1, \alpha_2 \to 0 and φ→∠(N1(p),N2(q))\varphi \to \angle(N_1(p), N_2(q)), so the test passes after finitely many splits. It never passes for a pair that holds a point where the normals of the two patches are parallel, because then the two double cones share that normal line. Such points are the tangential intersections, which need other methods.
  • No disk is needed. The proof of part 1 uses only the height function w⋅cw \cdot c. It does not use that a loop bounds a disk on each patch, so it holds for any embedded C1C^1 surfaces, also for pieces that are not simply connected.

Tightness

  • The constant is sharp. Take a1⋅a2≥0a_1 \cdot a_2 \ge 0, and let 0<δ<α1−φ0 < \delta < \alpha_1 - \varphi. The plane x⋅a2=cos⁡δx \cdot a_2 = \cos \delta cuts the unit sphere in a circle of angular radius δ\delta about a2a_2, and every point of the circle is within the angle φ+δ<α1\varphi + \delta < \alpha_1 of a1a_1. Let S1S_1 be a patch of the sphere that holds the circle and lies in the cap of angular radius α1\alpha_1 about a1a_1, so that its normals are within α1\alpha_1 of a1a_1. Let S2S_2 be a square of the plane that holds the circle, so that α2=0\alpha_2 = 0. The circle is a closed loop of S1∩S2S_1 \cap S_2. So for every α1>0\alpha_1 > 0 and every φ<α1\varphi < \alpha_1 there are patches with α2=0\alpha_2 = 0 and a loop, and the strict inequality cannot be weakened.
  • Disjoint normal sets are not enough for general pieces. Part 1 of the theorem uses only that c′c' lies in the tangent planes, so it holds for any embedded C1C^1 surfaces. The cylinder x2+y2=1x^2 + y^2 = 1, ∣z∣≤2|z| \le 2 has only horizontal normals, and the plane z=x/10z = x / 10 has normals that are nearly vertical. No normal line of one is a normal line of the other, but the two meet in a closed ellipse. The tangent planes of the cylinder are all the vertical planes, whose union is all of R3\mathbb{R}^3, so the hypothesis of the theorem fails, as it must. The cylinder is not a disk. For two patches that are disks, Sederberg, Christiansen and Katz proved that a closed loop forces a line normal to both patches, which is a different test (cited, not proved here).
  • Oriented normals are not enough. A patch of the unit sphere in z>0z > 0 that holds the circle z=1/2z = 1/2, with outward normals, and a square of the plane z=1/2z = 1/2 that holds the circle, with normal (0,0,−1)(0, 0, -1), have disjoint sets of unit normals, and they meet in the circle. The test must use lines, not unit vectors.
  • The converse fails. Two parallel planes have φ=0\varphi = 0, so the test fails, but they do not meet at all. The condition is sufficient, not necessary.

History

Sederberg and Meyers published a loop test for surface patch intersection in 1988. It uses cones that bound the normals and the tangent planes of the two patches, so that a subdivision can stop on a pair that cannot hold a small closed loop. The theorem on this page is a form of that test with tangent cones, with a full proof; the exact wording of the 1988 test is not restated. In 1989 Sederberg, Christiansen and Katz gave an improved test: if two patches meet in a closed loop, some line is normal to both patches. Hohmeyer built a full surface intersection algorithm on loop detection in 1991, and Kim, Papalambros and Woo studied the computation of tangent and normal cones of Bézier surfaces in 1995.

References

  1. Thomas W. Sederberg and Ray J. Meyers, Loop detection in surface patch intersections, Computer Aided Geometric Design 5(2), 161 to 171, 1988, the loop test with cones that bound the normals and the tangent planes of two patches (general locator; the exact wording of the test is not restated here)
  2. Thomas W. Sederberg, H. N. Christiansen and S. Katz, Improved test for closed loops in surface intersections, Computer-Aided Design 21(8), 505 to 508, 1989, the whole paper (a closed intersection loop of two patches forces a line that is normal to both patches)
  3. Michael E. Hohmeyer, A surface intersection algorithm based on loop detection, Proceedings of the First ACM Symposium on Solid Modeling Foundations and CAD/CAM Applications, 197 to 207, 1991, the whole paper (general locator)
  4. Deok-Soo Kim, Panos Y. Papalambros and Tony C. Woo, Tangent, normal, and visibility cones on Bezier surfaces, Computer Aided Geometric Design 12(3), 305 to 320, 1995, the definitions of the tangent cone and the normal cone of a Bezier surface and their computation (general locator)
  5. John W. Milnor, Topology from the Differentiable Viewpoint, Princeton University Press, 1997 (first edition 1965), Appendix, Classifying 1-manifolds, p. 55

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/DRKHX0/text.yaml