offset · ·

A drilled plate grown by 1

offset/drilled-plate-grown · offset, grow, analytic, torus, saddle

The plate from (−10, −10, 0) to (10, 10, 4), with a hole of radius 3 drilled through it along the z axis. Grow it by 1: the solid of every point within 1 of the drilled plate.

The plate grows as a box does: each face moves 1 outward, each outer edge becomes a quarter of a cylinder of radius 1, each corner an eighth of a ball. The hole narrows to radius 2, and each of its rims becomes the inner quarter of a torus's tube: a tube of radius 1 about the rim's circle, of radius 3, on the side toward the axis, a saddle. So the hole flares from radius 2 out to radius 3 at the grown plate's faces, z = −1 and z = 5, meeting them tangentially.

As a set:

$$\bigl(\bigl([-10,10]^2\times[0,4]\bigr) \setminus \{\,\rho \le 3\,\}\bigr) \oplus B_{1}$$

expectedclosed form
volume2781.02474V₀ − π(r − d)²c − 2π(r²d − πrd²/2 + 2d³/3), V₀ = abc + 2(ab + bc + ca)d + π(a + b + c)d² + 4πd³/3, a = b = 20, c = 4, r = 3, d = 1
area1449.394595A₀ − 2πr² + 2π(r − d)c + 2·2π(πrd/2 − d²), A₀ = 2(ab + bc + ca) + 2π(a + b + c)d + 4πd²

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
outcomepasspassrefusedpass–passwrong †pass–passpass †pass–passpassrefused
volume err.1.6e-164.9e-162.7e-131.5e-151.6e-161.6e-164.2e-090.0e+001.6e-161.6e-16
area err.9.4e-161.6e-161.9e-131.6e-169.4e-164.7e-166.3e-099.4e-169.4e-169.4e-16
time84 ms649 ms1.1 ms48 ms1.03 s16 ms102 ms62 ms12.9 s4 ms5.8 ms61 ms1.1 ms
CPU time137 ms648 ms970 µs48 ms1.03 s15 ms127 ms61 ms12.9 s5.1 ms5.6 ms86 ms940 µs
memory14.3 MB368.7 MB3.5 MB16.6 MB55 MB11.6 MB27.9 MB26.8 MB42.1 MB8 MB9.2 MB29.7 MB3.6 MB
LOC1018512720610301012254

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

offset/drilled-plate-grown.md, the case as written.