Expand description
Curves fitted through a trace at its own parameters and held to their tolerance between the samples.
A fit’s own error is measured at the points it was fitted through. A
trace with more detail than the samples (a many-span spline, a polyline
with more corners than samples) leaves a fit that meets its target at
every sample and misses the trace between them. These fits sample a
source curve at its own breaks, check each interval between samples
at its eighths, split the intervals that miss, and report the worst
distance measured anywhere, not the worst at the samples. The fits are
ogeom_geom::fit::fit_curve_sampled and its planar twin; this module
chooses where they start.
Functions§
- corners_
2d - Where a planar spline over
rangeturns a corner: its interior knots of multiplicity at least its degree, insiderange. - fit_
traced - A space curve fitted to
traceat its own parameters, starting from the samples atstations(strictly increasing): the open case ofogeom_geom::fit::fit_curve_sampled. Each interval is measured at its eighths as well as at the samples, and the intervals that misstoleranceare split until it holds everywhere measured or the samples reachogeom_geom::fit::SAMPLED_SPANSintervals. The best fit either way, itserrorthe worst distance measured andmetwhether that is withintolerance. - fit_
traced_ 2d - As
fit_traced, in the plane: a chart image fitted at the parameters of the curve it annotates. The distances are in the trace’s own units. - joined
- Polynomial splines of one degree, each clamped and each starting where the one before ends in parameter, joined end to end into one spline that is continuous at the joins and no smoother. Each join takes the middle of the two ends that meet there; the second value is how far that moved either end.
- stations
- The parameters to start a fit of
curveoverrangefrom: each span of the curve (between its distinct knots) cut indegree + 1pieces, and at leastat_leastpieces overall. - stations_
2d - As
stations, for a planar curve. - stations_
between - As
stations, for a range cut atbreaksinto pieces ofdegree: a patch’s direction between its distinct knots, say.