Skip to main content

n_sided_fill

Function n_sided_fill 

Source
pub fn n_sided_fill(
    sides: &[NurbsCurve],
    tangents: Option<&[NurbsCurve]>,
) -> Result<(Vec<NurbsSurface>, NSidedReport), NSidedRefusal>
Expand description

Fill the closed loop sides (3 to 6 curves, in order round the loop, either way along each) with N four-sided patches.

tangents, when given, holds one vector-valued curve per side, over that side’s own parameter domain: at each parameter, a direction ACROSS the side in the tangent plane the fill is to meet (the neighbouring face’s plane); only its direction matters, and its sign does not (the fill lies on the side of the loop its interior is on). The patches come in corner order, patch k at the start of side k (after orientation).