offset · ·

A cylinder grown by 1

offset/cylinder-grown · offset, grow, analytic, torus

A cylinder of radius 5 on the z axis, from z = 0 to z = 10, grown by 1: the solid of every point within 1 of the cylinder.

The side moves out to radius 6, the ends to z = −1 and z = 11, and each rim becomes the outer quarter of a torus's tube: a tube of radius 1 about the rim's circle, of radius 5.

As a set:

$$\{\,\rho \le 5,\ 0 \le z \le 10\,\} \oplus B_{1}$$

expectedclosed form
volume1341.5898πR²h + (2πRh + 2πR²)d + (πh + π²R)d² + 4πd³/3, R = 5, h = 10, d = 1
area645.33316572πRh + 2πR² + 2(πh + π²R)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–passpass †pass–passpass †pass–passpassrefused
volume err.3.4e-161.7e-161.3e-133.4e-161.7e-165.1e-166.0e-113.4e-081.7e-163.4e-163.4e-16
area err.0.0e+000.0e+001.2e-133.5e-161.8e-163.5e-163.9e-116.3e-080.0e+000.0e+001.8e-16
time10 ms634 ms1.2 ms9.2 ms161 ms2.6 ms77 ms15 ms20.9 s2.4 ms2.4 ms79 ms1.1 ms
CPU time13 ms633 ms980 µs9 ms160 ms2.4 ms78 ms14 ms20.9 s2.2 ms2.2 ms109 ms960 µs
memory10.9 MB365.3 MB3.6 MB11.7 MB48.5 MB6.9 MB22.7 MB13 MB39.7 MB6.9 MB8.3 MB33.5 MB3.4 MB
LOC6757516481888134

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

offset/cylinder-grown.md, the case as written.