Skip to main content

cut_planar_sweep_from_prism

Function cut_planar_sweep_from_prism 

Source
pub fn cut_planar_sweep_from_prism(
    target: &SweptTool,
    tool: &SweptTool,
    motion: &SolidMotion,
    clip: &SweepClip,
) -> Result<Option<Vec<BrepSolid>>, KernelRefusal>
Expand description

The prism target less what tool sweeps under motion within clip, as one extrusion of the plane region the target’s outline holds outside the swept region (exact where the sweep’s own region engine is; behind region_cut_on, default on). The same solid as subtracting [sweep_prism_planar_region]’s bodies from the target, without the 3D boolean: the sweep is taken within the clip only, as there.

None where it does not apply: the switch off, the sweep not one the region engine draws, a target that is not a prism along the clip’s axis with an outline of lines and circular arcs end to end, or a target that runs past the clip’s axial range.