Skip to main content

sweep_clip_less

Function sweep_clip_less 

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

The clip region less the sweep of tool along motion (default on; BREP_SWEEP_CLIP_LESS=0 answers None, so the caller subtracts the sweep): the workpiece the clip names (a rod: radius from 0, no angle window) with everything the tool passes through taken out, built by the level engine directly, without a boolean. At each level the material is what the sweep leaves; its walls are the sweep’s own, and at the clip’s outer radius the boundary is the circle less the sweep’s spans there. Over a crest (BREP_SWEEP_CLIP_LESS_CREST, default off) it is what stays below the crest. None where this is not built (another class than a screw, a crest with that switch off, a sweep that never reaches the outer radius or leaves more than one region, or anything the level engine refuses): the caller subtracts the sweep instead, and that route answers for its own refusals.