swept · ·

A slot punched by a drum pushed edge first

swept/drum-pushed-through-plate · swept, solid-sweep, slide, cylinder, closed-characteristic, boolean, cut

A plate, the box from (0, −5, 0) to (20, 5, 4), with a slot punched through it by a drum.

The drum is a solid cylinder of radius 2 lying on its side: its axis is the line y = 0, z = −5, and it runs from x = 6 to x = 14, its ends flat.

It slides without turning straight up by 16, from wholly below the plate to wholly above it. Cut from the plate everything the drum passes through.

The drum touches what it sweeps along a closed curve: along its side's lowest and highest lines nowhere (they move along themselves), along the two lines of its side at y = ±2, and across both flat ends, which the push keeps in their own planes. The slot is its shadow along the push, the rectangle 6 ≤ x ≤ 14, |y| ≤ 2, through the plate.

As a set:

$$\bigl([0,20]\times[-5,5]\times[0,4]\bigr) \setminus \bigl(T \oplus \{\,s\,(0,0,16) : 0 \le s \le 1\,\}\bigr), \quad T = \{\,y^2 + (z+5)^2 \le 2^2,\ 6 \le x \le 14\,\}$$

expectedclosed form
volume672800 − 8·(2·2)·4
area672640 − 2·32 + (2·8 + 2·4)·4

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–passpassrefused
volume err.5.1e-163.4e-161.7e-166.8e-165.1e-163.4e-165.1e-166.8e-166.8e-16
area err.0.0e+000.0e+000.0e+001.7e-160.0e+000.0e+000.0e+000.0e+000.0e+00
time24 ms640 ms7 ms12 ms10 ms5.2 ms4.4 ms7.2 ms54 ms6.9 ms
CPU time44 ms639 ms6.8 ms12 ms11 ms5 ms4.2 ms5.7 ms67 ms6.7 ms
memory13.7 MB368.2 MB11 MB42 MB24.3 MB15.8 MB9.5 MB8.8 MB27.8 MB4.9 MB
LOC23121156351013287

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

swept/drum-pushed-through-plate.md, the case as written.