Problemcore
Curve surface intersection
Also called curve and surface intersection.
Find all points where a parametric curve meets a parametric or implicit surface, the step that feeds lattice methods, ray tracing of patches and edge splitting.
Curve surface intersection asks for every point where a curve meets a surface, given as a parametric patch or as the zero set of a polynomial . In the parametric case the answer is the set of solutions of the three equations in three unknowns, so the points are isolated except when the curve lies in the surface. The problem is a building block: lattice methods for surface surface intersection intersect many curves with one surface, a ray tracer intersects rays with patches, and a modeler splits the edges of a B-rep where they cross a face. The hard parts are to find every point, including those where the curve only touches the surface, and to tell touching from crossing.
In plain words
A wire passes through a curved sheet. You want every spot where the wire meets the sheet. The wire is drawn by a formula with one number, the sheet by a formula with two numbers, and a meeting point is where both formulas give the same point in space. That is three equations, one for each direction in space, in three unknown numbers, so the answer is usually a few separate points.
Most points are clean crossings, where the wire goes from one side of the sheet to the other. Some are touching points, where the wire just grazes the sheet and stays on one side. Those are hard to find, because a small change in the shape turns one touching point into two crossings or into none. In the worst case the wire lies inside the sheet for a while, and the answer is a piece of curve.
Definition
Input. A regular curve , polynomial or rational, such as a Bézier curve, a B-spline or a NURBS curve. A surface, either a regular parametric patch on a box , or an implicit surface for a polynomial . A tolerance for the numerical case.
Output. All parameter values , with the matching in the parametric case, at which the curve meets the surface:
each point with its type: transversal when the curve crosses the surface there, tangential when the tangent lies in the tangent plane of the surface. If the curve lies in the surface over an interval, that interval is reported as an overlap. In the numerical version each reported point is within of a true point, and the true points and the reported ones are in one to one correspondence.
When a point is regular. At a point of the parametric case the Jacobian of is the matrix with columns , , , and
Proof. Negating two columns leaves a determinant unchanged, so the determinant equals , which is the triple product .
Since is a nonzero multiple of the normal , the Jacobian is nonsingular exactly when , that is, at a transversal point. So transversal points are regular solutions of the system: they are isolated, they move continuously when the curve and the surface move a little, and Newton's method for systems converges quadratically to them. Tangential points are singular solutions, with none of these properties. In the implicit case the same holds with .
Variants
- Rational polynomial curve and implicit algebraic surface. Substitute: is one polynomial in one unknown, and the problem is the real roots of in . This is the easy case, treated by Patrikalakis and Maekawa in Section 5.7.1.
- Rational polynomial curve and rational polynomial surface. The general CAD case, three equations in three unknowns, Section 5.7.2. It reduces to the first case by implicitization of the patch, at the cost of a high degree.
- Line and surface. The curve is a line or a ray. This is ray casting of a surface, see ray object intersection. It is also the directional variant of point projection.
- Isoparametric curve. The curve is a parameter line of a second surface, . Lattice methods for surface intersection solve many of these, see lattice evaluation intersection.
- Plane curves. With a curve and a curve in the plane, the problem is curve intersection, two equations in two unknowns.
Examples
- A twisted cubic and a plane. The curve meets the plane where . The derivative has no real root, so the cubic is increasing and has exactly one real root, , at the point . There , so the point is transversal.
- A line through a bump. Let , the bicubic bump with control points , for the four inner points and for the others. The line forces and , and then , so and . The two points are at and , so and . Both are transversal: the slope of the bump along the line is , not .
- A tangential point. The line through the top of the same bump gives , a double root at . The line touches the bump at its top, and raising the line by any amount removes the point, while lowering it splits the point in two.
- An overlap. The line lies in the bump along the edge , where the height is . Every is a solution.
- A line and a sphere. The line with meets the sphere where , two points, one tangential point or none by the sign of the discriminant .
Known algorithms
- Substitution and root isolation. For an implicit surface, form and find its real roots with real root isolation, a Sturm sequence, or Bézier clipping on the Bernstein form of . With exact rational coefficients this is a certified method, and the multiplicity of each root tells crossings from touchings.
- Implicitization. Compute the implicit equation of the patch by a resultant, as Sederberg, Anderson and Goldman (1984) proposed, and substitute the curve. The degree is high, up to for a bicubic patch, and the coefficients grow, so this is used mostly for low degrees.
- Subdivision. Split the curve and the patch with the de Casteljau algorithm and discard pairs whose convex hulls, or bounding boxes, do not overlap. When the pieces are flat enough, intersect a segment with a pair of triangles and refine with Newton. It is robust for transversal points and slow near tangential ones.
- Interval projected polyhedron. Write the three equations in Bernstein form over the box of and use the interval projected polyhedron method, which finds all roots in the box with outward rounding. Patrikalakis and Maekawa, Section 5.7.2.3.
- Bézier clipping. The clipping idea of Bézier clipping extends from two curves to a ray and a patch: project the patch onto two planes that contain the ray, which gives two equations in , and clip the parameter box with the convex hulls of the projected control points.
- Newton. From a start point on each intersection, Newton on converges quadratically at transversal points. It is the refinement step of the other methods, and on its own it misses points that have no start.
Bounds
Degree bound, implicit surface. If is a polynomial curve of degree and has degree , then has degree at most , so the curve meets the surface in at most points unless is the zero polynomial, in which case the whole curve lies in the surface. For a rational curve of degree , the numerator of , the homogenized evaluated at , has degree at most , with the same conclusion. A line meets a quadric in at most points, and a cubic curve meets a quadric in at most .
Proof. Each monomial of of degree becomes a product of coordinates of , of degree at most . In the rational case multiply each monomial by . A nonzero polynomial of degree at most has at most roots.
Degree bound, parametric patch. A rational tensor product patch of bidegree has an implicit equation of degree at most , so a rational curve of degree meets it in at most points, or lies in its implicit surface. For a bicubic patch and a line this is . The patch bound counts the points where a general line meets the patch, as the solutions in of two equations of bidegree , of which there are by Bézout's theorem for bidegree systems. That theorem is cited here, not proved. Base points lower the degree.
Stability. Transversal points are regular solutions, as proved above, so they persist and move continuously under small changes of the data, by the implicit function theorem. A tangential point of multiplicity can split into two transversal points or vanish under an arbitrarily small change, as the line through the top of the bump shows. So no method that works with a fixed precision can decide whether a tangential point exists, and certified methods report it as a box that may hold zero, one or two points.
Reductions
- To one polynomial. With an implicit surface, the problem is the real roots of one polynomial in one unknown.
- To a square system. In the parametric case it is three polynomial equations in three unknowns over a box, a case of systems of nonlinear equations.
- From curve intersection in the plane. Two plane curves and meet where the curve meets the surface , a cylinder over , so curve surface intersection solves curve intersection.
- To surface intersection. Lattice methods reduce surface surface intersection to many curve surface problems along the parameter lines of one surface.
- To distance. The curve meets the surface exactly when the minimum distance between them is .
Applications
- Ray tracing of patches. Each ray is a line, so rendering trimmed NURBS models directly needs a line and patch intersection per ray.
- Boolean operations. An edge of one solid is split where it crosses a face of the other, and the new vertices of the result are curve surface intersections.
- Lattice methods. Intersecting the parameter lines of one patch with the other gives points on the intersection curve of two surfaces, see lattice evaluation intersection.
- Start points for marching. The points where the boundary curves of one patch meet the other surface are the start points of the open branches of an intersection curve, used by marching.
- Machining and inspection. A probe or a tool moves along a line, and its first contact with the part is a line and surface intersection.
References
- Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 5, Section 5.7, Curve/surface intersection, with 5.7.1 (a rational polynomial curve against an implicit algebraic surface, by substitution) and 5.7.2 (against a rational polynomial surface, by implicitization, by subdivision and by the interval projected polyhedron method)
- Thomas W. Sederberg, David C. Anderson and Ronald N. Goldman, Implicit representation of parametric curves and surfaces, Computer Vision, Graphics, and Image Processing 28(1), 72 to 84, 1984, the whole paper (implicit equations of rational curves and surfaces by resultants, and their use to turn a parametric intersection into the roots of one polynomial)
- Gerald Farin, Curves and Surfaces for CAGD, A Practical Guide, fifth edition, Morgan Kaufmann, 2002, the chapters on Bézier curves and tensor product Bézier patches (the convex hull property and subdivision that the subdivision methods use; general locator)
Where this leads
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag DYYWZ3 Edit this page History Report an error Markdown