Skip to main content

flanged_prism

Function flanged_prism 

Source
pub fn flanged_prism(
    section: &GearSection,
    width: f64,
    radius: f64,
    thickness: f64,
    both: bool,
) -> Result<BrepSolid, KernelRefusal>
Expand description

A pulley solid: the section extruded along +z by the width; names as the section’s roles, then F and B. The counter-clockwise section (z = 0) extruded to z = width with a flange disc of radius and thickness under it (and, with both, another over it), built directly rather than as a union. Faces are named: the section’s walls by role, the flanges FL1_OD/FL1_F (its outer face)/FL1_B (the annulus round the section) and FL2_F (the annulus)/FL2_OD/FL2_B, and without a second flange the section’s own end B.