offset · ·

A napkin ring grown by 1

offset/napkin-ring-grown · offset, grow, analytic, torus, oblique

A napkin ring: a ball of radius 5 centered on the origin, with a hole of radius 3 bored right through it along the z axis. Grow it by 1: the solid of every point within 1 of the ring.

The ring's outer face moves out to the sphere of radius 6, and its bore narrows to radius 2. Each of its rims, the circle of radius 3 at z = 4 or z = −4 where the sphere meets the bore at an angle of θ = atan(4/3) (about 53.13°) inside the ring, becomes a piece of a torus's tube of radius 1 about the rim's circle, turning through π − θ (about 126.87°) from the bore to the sphere: from z = ±4 on the bore to the point (3.6, ±4.8) of a section through the axis.

As a set:

$$\bigl(B_5 \setminus \{\,\rho \le 3\,\}\bigr) \oplus B_{1}$$

expectedclosed form
volume737.0776973πh³/6 + 2π(2((R + d)³ − R³)sin θ/3 + h(2rd − d²)/2 + r(π − θ)d² − 2d³sin θ/3), R = 5, r = 3, h = 8, θ = atan(4/3), d = 1
area535.86638882π(2(R + d)²sin θ + (r − d)h + 2r(π − θ)d − 2d²sin θ)

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–refusedrefused †pass–passpass †pass–passrefusedrefused
volume err.3.1e-163.1e-162.8e-133.1e-161.4e-153.7e-083.1e-161.5e-16
area err.2.1e-164.2e-161.5e-132.1e-161.1e-154.7e-082.1e-162.1e-16
time9.1 ms643 ms1.1 ms11 ms311 ms14 ms120 ms7.6 ms49.6 s4.5 ms3.4 ms47 ms1.1 ms
CPU time12 ms642 ms950 µs11 ms311 ms14 ms121 ms7.3 ms49.6 s4.3 ms3.1 ms47 ms930 µs
memory11.4 MB367.2 MB3.9 MB11.7 MB49.8 MB12.1 MB26.8 MB17.5 MB76.7 MB8.9 MB8.7 MB24.9 MB3.4 MB
LOC916512725710231011144

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

offset/napkin-ring-grown.md, the case as written.