offset · ·

A plate with a shallow round recess grown past the recess's radius

offset/recessed-plate-grown-past-its-recess · offset, grow, analytic, torus, vanishing-face, adversarial

The plate of offset/drilled-plate-grown, from (−10, −10, 0) to (10, 10, 4), with a round recess of radius 3 sunk 1 into its top about the z axis (a flat floor at z = 3), grown by 4, more than the recess's radius: the solid of every point within 4 of the plate.

The plate grows as a box does: each face moves 4 outward, each edge becomes a quarter of a cylinder of radius 4, each corner an eighth of a ball. The recess is gone: every point of it is within 3 of its wall. Over it, though, a point is within 4 of the plate if it is within 4 of the recess's rim or of its floor, and only then, so the grown top, at z = 8, dips over the recess: a flat floor at z = 7, 4 above the recess's floor, out to radius 3 − √7 ≈ 0.354, and from there the inner side of a tube of radius 4 about the rim's circle (of radius 3, at z = 4), which rises to meet the flat of the grown top along the circle of radius 3.

As a set:

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

expectedclosed form
volume8554.149195V₀ − 2π((3 − √7)²/2 + 15√7/2 − 24·asin(√7/4) − 5/3), V₀ = abc + 2(ab + bc + ca)d + π(a + b + c)d² + 4πd³/3, a = b = 20, c = 4, d = 4
area2428.382592A₀ − 9π + π(3 − √7)² + 8π(3·asin(√7/4) − 1), A₀ = 2(ab + bc + ca) + 2π(a + b + c)d + 4πd², a = b = 20, c = 4, d = 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–––refused–––pass–pass–wrong–refused
volume err.2.1e-162.5e-122.1e-164.3e-163.3e-03
area err.1.9e-166.4e-125.6e-161.9e-167.8e-03
time95 ms658 ms57 ms177 ms37 ms13 ms1.1 ms
CPU time157 ms657 ms57 ms177 ms72 ms13 ms920 µs
memory14.8 MB370.9 MB47.4 MB29.2 MB11.9 MB9.5 MB3.4 MB
LOC101561010124

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

offset/recessed-plate-grown-past-its-recess.md, the case as written.