Skip to main content

prism_by_rows

Function prism_by_rows 

Source
pub fn prism_by_rows(
    section: &GearSection,
    degree_v: usize,
    knots_v: &[f64],
    rows: &dyn Fn(Vec4) -> Vec<Vec4>,
) -> Result<BrepSolid, KernelRefusal>
Expand description

A planar counter-clockwise section (in a plane z = const) carried along v in [0, 1] by rows, which maps each homogeneous control point to the control points of its v-curve (degree degree_v on knots_v); the last row must again be planar at a constant z (the top cap). Side faces in section order, then the face at v = 0, then the face at v = 1.