swept · ·

A pocket cut by an end mill turned about a line through its flat end

swept/end-mill-turned-about-a-line-through-its-end · swept, solid-sweep, turn, cylinder, flat-contact, boolean, cut

A block, the box from (−10, −10, −5) to (10, 10, 0), with a pocket cut into its top by an end mill turned about a line that passes through its own flat end, as spot facing is done off center.

The mill is a solid cylinder of radius 3 standing upright about the vertical line through (1.5, 0), from z = −2 up to z = 4: its flat end is 2 below the block's top, and the z axis passes through that end, 1.5 from its center.

It turns rigidly about the z axis, right-handed (from +x toward +y), by 120°, so that its axis ends on the vertical line through (1.5 cos 120°, 1.5 sin 120°). Cut from the block everything the mill passes through.

The pocket's floor, z = −2, is the region the end's disc sweeps: the disc where it starts and where it stops, and between them everything out to 4.5 from the axis. Near the axis the two discs and the turn overlap, so the pocket's wall there is only the parts of the two discs' rims the other does not cover.

expectedclosed form
volume1906.7513392000 − 2·S, S the region the end's disc sweeps: πr² + 2θrd less what the turn covers twice near the axis, ((θ − 2π)(b² − (r − d)²)/2 + lens(b) − π(r − d)²), r = 3, d = 1.5, θ = 2π/3, b where the disc's half-angle about the axis is π − θ/2 (b² + 1.5b − 6.75 = 0), lens(b) the area of the disc within b of the axis
area1249.3562861200 + 2·P, P the region's perimeter: (r + d)θ + 2r·acos((b² − d² − r²)/2dr)

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.2.4e-163.6e-163.6e-161.2e-162.0e-101.2e-163.6e-162.4e-162.4e-16
area err.0.0e+001.8e-161.8e-161.8e-161.1e-103.6e-160.0e+000.0e+000.0e+00
time48 ms630 ms9 ms267 ms93 ms9.6 ms5.6 ms17 ms93 ms1.3 ms
CPU time106 ms629 ms8.8 ms266 ms176 ms9.2 ms8.9 ms17 ms170 ms1.1 ms
memory15.4 MB368.5 MB11.1 MB49.2 MB27.8 MB15.9 MB9.4 MB8.9 MB32.1 MB3.5 MB
LOC211511158351012264

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

swept/end-mill-turned-about-a-line-through-its-end.md, the case as written.