swept · ·

A core drill pushed along its leaning axis through a plate

swept/core-drill-pushed-aslant-through-plate · swept, solid-sweep, slide, cylinder, tube, oblique, two-lumps, boolean, cut

A plate, the box from (−10, −10, 0) to (10, 10, 4), with an annular cut made right through it by a core drill pushed along its own leaning axis.

The drill is a tube: everything between 1.5 and 2.5 from its axis, which is the line through (0, 0, 2) along the direction u = (sin 30°, 0, cos 30°), leaning 30° from upright toward +x. As placed, the tube runs along its axis from 18 to 6 before (0, 0, 2), its ends square to its axis, wholly below the plate.

It slides along u by 24, to run from 6 to 18 past (0, 0, 2), wholly above the plate. Cut from the plate everything the tube passes through.

The tube's shadow along the push is an annulus, so it sweeps two oblique cylinders through the plate. The core inside the inner one is cut free of the plate and stays: the result is two separate solids, the plate with its oblique hole and the core, an oblique cylinder of radius 1.5 cut by the planes z = 0 and z = 4.

expectedclosed form
volume1541.958421600 − 4·π(2.5² − 1.5²)/cos 30°: each level loses the annulus between two ellipses
area1207.0623691120 − 2·π(2.5² − 1.5²)/cos 30° + the walls 2π(2.5 + 1.5)·4/cos 30°

Drawing

Top view
Top
Isometric view
Isometric
Front view
Front
Right view
Right

Third-angle projection, the three views at one scale. Drawn from occt's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepasspass †–pass–pass †–pass–pass–pass–passpasspass †
volume err.1.5e-165.5e-150.0e+004.4e-162.9e-161.5e-161.5e-162.9e-161.5e-167.4e-13
area err.1.9e-168.9e-153.8e-163.8e-161.9e-161.9e-161.9e-161.9e-160.0e+001.3e-12
time258 ms639 ms10 ms89 ms144 ms61 ms8.2 ms4.8 ms280 ms121 ms
CPU time336 ms638 ms10 ms89 ms153 ms61 ms14 ms4.5 ms454 ms121 ms
memory18.4 MB368.7 MB11.1 MB48.6 MB26.8 MB23.7 MB9.8 MB8.9 MB41.6 MB5.2 MB
LOC3023161391613184011

† works around a missing feature. Pick an entry to see its solid, its measures and its code.

swept/core-drill-pushed-aslant-through-plate.md, the case as written.