Skip to main content

hollow_prism

Function hollow_prism 

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

A cylinder of radius and height with the counter-clockwise planar section (in z = z0, read off the section) carried through it by rows (as prism_by_rows carries it; the last row planar at z0 + height) taken out: a ring gear or a spline hub, built directly rather than as a boolean. The section’s faces are named by their role (R3, G0, …), the cylinder OD, the face at z = 0 F and the face at z = height B.