Skip to main content

sweep_pyramid_within

Function sweep_pyramid_within 

Source
pub fn sweep_pyramid_within(
    tool: &Pyramid,
    motion: &SolidMotion,
    within: [f64; 2],
) -> Result<BrepSolid, KernelRefusal>
Expand description

What tool sweeps under motion (turns about axes through its apex), within the distances within = [r0, r1] from the apex: the cone over the region its section sweeps, capped by planes square to the region’s middle direction (inside r0 for its widest direction, and at r1): within [r0, r1] it is the sweep, beyond it the result is not. Refuses a motion with an advance or an axis missing the apex, a section that is not convex, a range beyond where the sweep is the cone (past the inner end’s farthest point and short of the outer end’s nearest), and a region whose boundary is not one loop.