Skip to content

A boundary curve lying on the other surface is one whole curve

Where a boundary curve of one surface (its iso-curve at a bound of a bounded parameter) lies on the other surface, the march reports it as one curve, from end to end, and traces only the rest of the intersection. The boundary curve is not cut where other curves of the intersection meet it, and it is not marked tangent unless the surfaces touch along all of it.

Two surfaces sharing a boundary meet along it: the plain and the rational surface on one control net share every boundary curve whose poles are collinear, and two neighbouring patches share the boundary curve between them. The march traced such a curve along a parameter bound of both surfaces at once. A predicted step left the parameter domain by a rounding, and the trace ended there, so the curve came back in pieces wherever rounding took a step out, and their number changed with the model's size and placement (ADR 0051): the plain and rational sample surfaces met in 10 curves at the reference size, 4 at a scale of 2^-20 and 42 at a translation of 1e3, with seeds no trace could leave reported as unseparated.

A boundary curve is an iso-curve of its own surface, so its points are found on it directly, without a correction step that can leave the domain. Before seeding, each boundary curve of either surface is checked at 9 points, its middle first; a point outside the other surface's box needs no projection, so a boundary curve off the other surface costs one projection at most. A boundary curve lying on it is sampled along its own parameter, cut at the knots of a B-spline surface and halved until the fitted Hermite curve keeps within a quarter of confusion of it, as a traced step does, and its parameters on the other surface come from projection. It is then kept as a traced curve: a seed on it is found on it and not traced, and a trace reaching it ends on the bound as before. A boundary curve of the second surface that is also one of the first is kept once.

Considered options

  • Cut the boundary curve where other curves meet it: rejected. The points where a crossing curve meets the boundary curve are where the trace of that curve ends, found to within its last step; cutting the boundary curve there makes its pieces depend on that step. A caller that needs the pieces splits the boundary curve at the ends of the other curves.
  • Report the shared boundary as an overlap region: rejected. Where the surfaces cross along the boundary curve, it is a curve of the intersection, not a region where they lie on each other; where they touch along all of it, the curve is reported tangent.
  • Let a trace run along a parameter bound: rejected. Holding a step on the bound needs a correction with one parameter pinned for each side the curve lies on the bound of, and the step would still decide where the curve ends. The boundary curve is known whole before any step.
  • Boundary curves lying on the other surface in part: not now. A boundary curve that leaves the other surface partway is traced as before. It is reopened when a pair shows it.

Consequences

A pair whose boundary curves lie on each other's surfaces reports each shared boundary curve as one curve, with the same count at every size and placement. Every pair of surfaces with a bounded parameter pays the check of its boundary curves: a box test, and one projection for a boundary curve inside the other surface's box.

Amended (#311): the sampled pieces are halved further until the Hermite segments of the fits in both surfaces' parameters keep to the segment in space, as a traced step's do (#393), which needs the projection of each sample kept. A straight boundary curve of the rational surface on one control net runs along that surface's parameters at a speed its uneven weights change fast; sampled for the fit in space alone, it took five points, and its fit in the rational surface's parameters strayed by up to 1.6 from a curve 2 long. A piece no longer than 16 confusions is not halved, as a traced step is not checked there.