offset · ·

A block with a deep blind bore grown past the bore's radius

offset/blind-bored-block-grown-past-its-bore · offset, grow, analytic, torus, vanishing-face, adversarial

The block from (−10, −10, 0) to (10, 10, 10) with a blind bore of radius 3 down its z axis from the top, 8 deep, to a flat floor at z = 2. Grow it by 4, more than the bore's radius: the solid of every point within 4 of the block.

The block 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 bore is gone, filled solid: every point of it is within 3 of its wall. Over the bore's mouth, as over a hole drilled through (offset/drilled-plate-grown-past-its-hole), a point is within 4 of the block only within 4 of the bore's rim (the floor, 8 down, is too far to matter), so the grown top dips in a dimple: the inner part of a spindle torus, a tube of radius 4 about the rim's circle of radius 3, whose lowest point is on the axis √7 ≈ 2.65 above the top face. The bottom stays flat, and there is no cavity anywhere inside.

As a set:

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

expectedclosed form
volume13175.69842V₀ − 2π(dρ²/2 − ρ/2·(ρq + d²·asin(ρ/d)) + (d³ − q³)/3), V₀ = abc + 2(ab + bc + ca)d + π(a + b + c)d² + 4πd³/3, a = b = 20, c = 10, ρ = 3, d = 4, q = √(d² − ρ²) = √7
area3059.33105A₀ − πρ² + 2πd(ρφ − d(1 − cos φ)), A₀ = 2(ab + bc + ca) + 2π(a + b + c)d + 4πd², φ = asin(ρ/d), a = b = 20, c = 10, ρ = 3, 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 next.BREP's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepassrefused–––refused–––pass–pass–wrong–refused
volume err.1.4e-161.4e-161.4e-162.6e-03
area err.3.0e-161.5e-163.0e-162.5e-02
time77 ms625 ms60 ms169 ms26 ms14 ms1.2 ms
CPU time127 ms624 ms59 ms169 ms43 ms13 ms980 µs
memory13.8 MB365.1 MB44.2 MB29.1 MB11.5 MB9.4 MB3.5 MB
LOC131461010124

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

offset/blind-bored-block-grown-past-its-bore.md, the case as written.