Skip to main content

surface_curve_sweep_within

Function surface_curve_sweep_within 

Source
pub fn surface_curve_sweep_within(
    rings: &Rings,
    sample: impl FnMut(f64) -> Result<(SampledPath, Vec<DVec3>), GeomError>,
    budget: f64,
) -> Result<TriMesh, GeomError>
Expand description

surface_curve_sweep whose walls stay within budget of the surface its rings trace along a smooth directrix (#231).

sample(b) returns the directrix sampled to chord budget b and the reference surface’s normal at each sample; see fixed_reference_sweep_within.