Skip to main content

Module fill

Module fill 

Source
Expand description

Surface filling: a face fitted over the region a loop of edges bounds.

make_filling takes four edges and fits the transfinite Coons blend of them (which interpolates them exactly), fitted at the blend’s own parameters and measured between the samples, error reported. What the caller gets is a natural face over the fitted patch: the patch’s own chart rectangle is the trim, and the patch boundary stands within the stated fit tolerance of the edges it was asked to fill.

make_filling_n takes any number of sides, each meeting the face it came from at G0, G1 or G2, and points and curves inside the hole the surface must pass through. Its face is bounded by the given edges themselves, each carrying a pcurve on the fitted patch, so sewing it to the faces around it finds the edges already shared. The patch is a height field over the plane the boundary loop spans, or where the loop or its supports turn square to that plane a patch free in all three coordinates over a chart drawn from the loop, fitted over a rectangle wider than the hole and trimmed by the edges; every deviation the caller asked about is measured along every side and reported.

Structs§

FillBoundary
One side of an N-sided filling.
FillSide
What a filling achieved along one side, measured at stations spread over the edge.
Filled
A filling and what it achieved.

Functions§

make_filling
Fill the loop edges bound with a fitted patch face.
make_filling_n
Fill the hole a loop of edges bounds with one face meeting each side’s support at the continuity asked.