Skip to main content

Module surface

Module surface 

Source
Expand description

Surface/point containment by per-axis fat line clipping — the design is surface.md next to this file, the curve version it extends is curve.md / super::curve.

Each Cartesian axis k gives a polynomial tensor-product spline g_k(u, v) = H_k(u, v) - p_k W(u, v) whose zeros are exactly where that coordinate matches. Its control net is collapsed onto each parameter axis by interval union over the other index, and the resulting 1-D envelopes are clipped with the same fat line as curves ([clip_tensor]). Intersecting over the axes shrinks the patch towards the solution in both directions at once.

Functions§

surface_could_contain
Fat-line-clipping counterpart of super::surface_bisect::surface_could_contain (surface.md §§4–5), with the same tunables: the componentwise union of every converged patch’s clipped (u, v) box, exploring breadth-first.