Skip to main content

carrier_preview_patch

Function carrier_preview_patch 

Source
pub fn carrier_preview_patch(
    surface: &NurbsSurface,
    inflate: f64,
) -> Result<NurbsSurface, String>
Expand description

Diagnostic “carrier preview” patch (§3.15 applied to display): re-express the surface over an INFLATED domain so an inspector can show where the carrier continues beyond the face’s trim. Open directions inflate about the domain centre by inflate (a factor; 1 = unchanged), evaluated through evaluate_extended — exact linear extension for affine carriers, ruled/tangent extension generally. CLOSED (periodic) directions keep the stored full period instead of inflating — wrapping further would overlap the surface onto itself. A torus (closed both ways) returns unchanged.

Affine carriers rebuild EXACTLY from four extended corners; everything else is a preview-quality degree-3 interpolation over a 33-sample grid.