Algorithm Search⌘K

Conceptadvanced

Tangential surface intersection

Also called tangent surface intersection, singular intersection curve.

The case where two surfaces meet with parallel normals, at a point or along a curve, so marching fails and the shape of the intersection depends on second and higher derivatives.

A tangential intersection is a common point of two surfaces where their normals are parallel, so that the surfaces share a tangent plane there. The usual tools of surface surface intersection fail at such a point: the tangent N1×N2N_1 \times N_2 of the curve is zero, and the Newton corrector of marching has a singular matrix. Near the point the surfaces can meet in only that point, in two branches that cross, or along a whole curve where they touch. The second fundamental forms of the two surfaces decide between these cases, and higher derivatives decide when the forms do not.

In plain words

Two surfaces usually cut each other at an angle. The cut is a clean curve, and a program can follow it step by step.

Sometimes the surfaces only touch. A ball resting on a table touches it at one point. A pipe lying on the table touches it along a line. A saddle laid on a flat sheet can touch it along two lines that cross. At such places the two surfaces have the same tilt, so the program cannot tell which way the curve goes.

To decide what happens, look at how each surface bends near the place where they touch. If one bends away from the other in every direction, they meet at one point only. If they bend the same amount in one direction, they can touch along a curve. A very small shift of one surface can change the answer completely.

The idea

The transversal case. Let N1N_1 and N2N_2 be the unit normals, with cos⁡θ=N1⋅N2\cos \theta = N_1 \cdot N_2 and sin⁡θ>0\sin \theta > 0. The intersection curve is tangent to both surfaces, so its unit tangent is t=N1×N2/sin⁡θt = N_1 \times N_2 / \sin \theta. Let kk be its curvature vector. Differentiating t⋅Ni=0t \cdot N_i = 0 along the curve gives k⋅Ni=κik \cdot N_i = \kappa_i, the normal curvature of SiS_i in the direction tt, that is IIi(t,t)\mathrm{II}_i(t, t) for the second fundamental form of SiS_i with respect to NiN_i. As k⊥tk \perp t, k=αN1+βN2k = \alpha N_1 + \beta N_2, and the two conditions give

k=(κ1−κ2cos⁡θ)N1+(κ2−κ1cos⁡θ)N2sin⁡2θ.k = \frac{(\kappa_1 - \kappa_2 \cos \theta) N_1 + (\kappa_2 - \kappa_1 \cos \theta) N_2}{\sin^2 \theta}.

Both tt and kk have sin⁡θ\sin \theta in the denominator. As the curve comes near a point where the normals are parallel, these formulas lose all accuracy, and at the point they are not defined.

The local model. Let pp be a common point with N1(p)=±N2(p)N_1(p) = \pm N_2(p). Move pp to the origin and turn the frame so that the common normal is e3e_3. Near pp each surface is a graph z=fi(x,y)z = f_i(x, y) with fi(0)=0f_i(0) = 0 and ∇fi(0)=0\nabla f_i(0) = 0, and the Hessian of fif_i at 00 is the matrix of IIi\mathrm{II}_i with respect to e3e_3. The common points near pp are the zeros of

d(x,y)=f1(x,y)−f2(x,y),d(0)=0,∇d(0)=0,H=∇2d(0)=II1−II2.d(x, y) = f_1(x, y) - f_2(x, y), \qquad d(0) = 0, \quad \nabla d(0) = 0, \quad H = \nabla^2 d(0) = \mathrm{II}_1 - \mathrm{II}_2.

The normals of the graphs are parallel exactly where ∇f1=∇f2\nabla f_1 = \nabla f_2, that is where ∇d=0\nabla d = 0. A direction vv in the tangent plane with H(v,v)=0H(v, v) = 0 is a direction in which the two normal curvatures agree; in the words of Patrikalakis and Maekawa, the Dupin indicatrices of the two surfaces meet there.

The cases. The determinant of HH sorts the point.

  • det⁡H>0\det H > 0, isolated point. HH is definite, say H(v,v)≥λ∣v∣2H(v, v) \ge \lambda |v|^2 with λ>0\lambda > 0. Taylor's theorem gives d(v)≥λ∣v∣2/2−C∣v∣3>0d(v) \ge \lambda |v|^2 / 2 - C |v|^3 > 0 for 0<∣v∣<λ/(2C)0 < |v| < \lambda / (2C), so near pp the surfaces meet only at pp.
  • det⁡H<0\det H < 0, branch point. H(v,v)=0H(v, v) = 0 has two distinct directions, and two intersection branches cross at pp in these directions. This follows from the Morse lemma, and is the branch point case of Patrikalakis and Maekawa (Section 6.4.1, cited, not proved here).
  • det⁡H=0\det H = 0, H≠0H \ne 0, one double direction. The second order terms do not decide. If the surfaces touch along a curve through pp, then det⁡H=0\det H = 0: along the curve ∇d=0\nabla d = 0, so its derivative HtH t along the tangent tt of the curve is 00, and HH is singular. The converse is false, as the examples show.
  • H=0H = 0, contact of higher order. The normal curvatures agree in every direction, and the third or higher derivatives decide.

A tangential curve, when HH has rank one. Turn the frame so that H=diag(0,h)H = \mathrm{diag}(0, h) with h≠0h \ne 0. Then ∂yd(0)=0\partial_y d (0) = 0 and ∂yyd(0)=h≠0\partial_{yy} d(0) = h \ne 0, so by the implicit function theorem the zeros of ∂yd\partial_y d near 00 form a curve y=g(x)y = g(x). Every point near pp with parallel normals has ∇d=0\nabla d = 0, so it lies on this curve. Put δ(x)=d(x,g(x))\delta(x) = d(x, g(x)). The surfaces touch along a curve through pp exactly when δ=0\delta = 0 on an interval about 00. If they touch along a curve, the curve is in the set ∇d=0\nabla d = 0, so in the graph of gg, and δ\delta vanishes on its projection, which is an interval. Conversely, if δ=0\delta = 0 on an interval, then d=0d = 0 and ∂yd=0\partial_y d = 0 on the graph of gg there, and ∂xd=δ′−g′ ∂yd=0\partial_x d = \delta' - g' \, \partial_y d = 0, so the normals are parallel along it. So a two dimensional degenerate problem becomes a one dimensional test on δ\delta.

Sensitivity. A tangential intersection is unstable. In the examples below, moving one surface by ε\varepsilon along the normal moves the intersection by a distance of order ε\sqrt{\varepsilon}, and it changes the topology: a point becomes a small circle or nothing, and a line becomes two lines or nothing. So a method in floating point can only decide such a case within a tolerance, and an exact answer needs exact arithmetic or an explicit tolerance in the model. The ratio of the change of the output to the change of the input, ε/ε\sqrt{\varepsilon} / \varepsilon, has no bound as ε→0\varepsilon \to 0, so the condition number of the problem is infinite at the point.

What methods do. Patrikalakis and Maekawa compute the tangent at a tangential point from the quadratic equation for the directions where the normal curvatures agree, then the curvature vector from a linear system, and the third and higher derivatives in the same way, for parametric and implicit surfaces (Section 6.4). Ye and Maekawa give the curvature, the torsion and the higher derivatives of the intersection curve at transversal and at tangential points, and Markot and Magedson treated the solution of tangential surface and curve intersections in 1989. A subdivision method cannot stop near such a point by the loop test, because the normal cones of the two pieces always share the common normal line.

Examples

  • The transversal formula on a sphere. The unit sphere and the plane z=1−δz = 1 - \delta meet in a circle of radius ρ=2δ−δ2\rho = \sqrt{2 \delta - \delta^2}. At a point of the circle the normals make the angle θ\theta with sin⁡θ=ρ\sin \theta = \rho, and the normal curvatures are ∣κ1∣=1|\kappa_1| = 1 for the sphere and κ2=0\kappa_2 = 0 for the plane. The formula gives ∣k∣=∣κ1∣ ∣N1−cos⁡θ N2∣/sin⁡2θ=1/sin⁡θ=1/ρ|k| = |\kappa_1| \, |N_1 - \cos \theta \, N_2| / \sin^2 \theta = 1 / \sin \theta = 1 / \rho, the curvature of the circle. As δ→0\delta \to 0, ρ→0\rho \to 0 and the curvature has no limit.
  • Isolated point. For δ=0\delta = 0 the plane touches the sphere at the north pole. Here f1=1−1−x2−y2f_1 = 1 - \sqrt{1 - x^2 - y^2} in the frame at the pole, f2=0f_2 = 0, and H=IH = I is definite. A shift of ε>0\varepsilon > 0 into the sphere gives a circle of radius about 2ε\sqrt{2 \varepsilon}, and a shift away gives nothing.
  • Touching along a line. The cylinder of radius rr with axis y=0y = 0, z=rz = r lies on the plane z=0z = 0 along the xx axis. Here f1=r−r2−y2f_1 = r - \sqrt{r^2 - y^2}, f2=0f_2 = 0, H=diag(0,1/r)H = \mathrm{diag}(0, 1/r), g=0g = 0 and δ=0\delta = 0. The plane z=εz = \varepsilon with 0<ε<2r0 < \varepsilon < 2r cuts the cylinder in the two lines y=±2rε−ε2y = \pm \sqrt{2 r \varepsilon - \varepsilon^2}, and the plane z=−εz = -\varepsilon misses it.
  • Branch point. The saddle z=xyz = x y and the plane z=0z = 0 have d=xyd = x y and HH with det⁡H=−1\det H = -1. They meet in the two lines x=0x = 0 and y=0y = 0, which cross at the origin. The plane z=εz = \varepsilon meets the saddle in a hyperbola with two branches that do not cross.
  • The same HH, three answers. Take f2=0f_2 = 0 and f1=y2f_1 = y^2, y2+x4y^2 + x^4 or y2−x4y^2 - x^4. In each case H=diag(0,2)H = \mathrm{diag}(0, 2), g=0g = 0 and δ(x)=0\delta(x) = 0, x4x^4 or −x4-x^4. The first pair touches along the xx axis, the second meets only at the origin, and the third meets in the two curves y=±x2y = \pm x^2, which are tangent to each other at the origin. So a double direction of the quadratic does not by itself give a tangential curve, and δ\delta decides.

Where it is used

  • Boolean operations. Solids whose faces touch, such as a cylinder that rests on a plane face, give tangential intersections, and the surface surface intersection of a modeler must report the touching curve or point and not a pair of nearby cut curves.
  • Blends. A rolling ball blend meets each base surface with the same tangent plane along its trimline, so the blend and the base surface intersect tangentially along a whole curve. The spine of the blend has no tangent where the two base surfaces have parallel normals.
  • Marching. A marching method must detect when sin⁡θ\sin \theta becomes small, stop before the Newton corrector fails, and at a branch point continue along the directions from the quadratic.
  • Distance and contact. A common point with parallel normals is where the distance between two surfaces has a double zero, so the same analysis applies to the contact case of the minimum distance between surfaces, and to the curvature tests of surface curvature.

References

  1. Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Section 6.3 (the transversal case, with the tangent along the cross product of the normals) and Section 6.4, Intersection curve at tangential intersection points (6.4.1 Tangential direction, 6.4.2 Curvature and curvature vector, 6.4.3 Third and higher order derivative vector)
  2. Xiuzi Ye and Takashi Maekawa, Differential geometry of intersection curves of two surfaces, Computer Aided Geometric Design 16(8), 767 to 788, 1999, the whole paper (tangent, curvature, torsion and higher derivatives of the intersection curve at transversal and tangential points; general locator)
  3. R. P. Markot and R. L. Magedson, Solutions of tangential surface and curve intersections, Computer-Aided Design 21(7), 421 to 427, 1989, the whole paper (general locator)

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