swept · ·

A slot cut by an end mill slid across a block

swept/end-mill-slid-across-block · swept, solid-sweep, slide, cylinder, flat-contact, boolean, cut

A block, the box from (0, −5, 0) to (20, 5, 10), with a slot cut across its top by an end mill.

The end mill is a solid cylinder of radius 2 standing upright about the vertical line through (−5, 0), from z = 7 up to z = 15: its flat end is 3 below the block's top.

It slides without turning along the x axis by 30, from x = −5 to x = 25, from clear before the block to clear past it. Cut from the block everything the mill passes through.

Its flat end, which the slide keeps in its own plane, touches all over and sweeps the slot's floor; the two lines of its side square to the slide sweep the walls, meeting the floor in sharp edges. The slot is |y| ≤ 2, z ≥ 7, along the block's whole length.

As a set:

$$\bigl([0,20]\times[-5,5]\times[0,10]\bigr) \setminus \bigl(T \oplus \{\,s\,(30,0,0) : 0 \le s \le 1\,\}\bigr), \quad T = \{\,(x+5)^2 + y^2 \le 2^2,\ 7 \le z \le 15\,\}$$

expectedclosed form
volume176020·10·10 − 20·(2·2)·3
area10961000 − 80 − 2·12 + 80 + 2·20·3

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.2.6e-163.9e-161.3e-162.6e-163.9e-163.9e-162.6e-163.9e-163.9e-163.9e-16
area err.0.0e+000.0e+000.0e+002.1e-160.0e+002.1e-160.0e+000.0e+000.0e+000.0e+00
time38 ms635 ms8.3 ms12 ms10 ms5.3 ms4.5 ms7.6 ms59 ms9.3 ms
CPU time56 ms634 ms8.1 ms12 ms10 ms5 ms4.2 ms6.9 ms79 ms9.1 ms
memory13.8 MB368.3 MB11 MB41.7 MB24.2 MB16.3 MB9.4 MB8.9 MB26.6 MB4.9 MB
LOC23111157351012267

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

swept/end-mill-slid-across-block.md, the case as written.