offset · ·

A rounded puck shrunk by exactly its rounds' radius

offset/rounded-puck-shrunk-by-its-rounds · offset, shrink, analytic, torus, round, vanishing-face

A puck: the cylinder of radius 6 on the z axis from z = 0 to z = 10 with both its circular edges rounded to radius 2, each round a quarter of a torus whose tube has radius 2 about the circle of radius 4 at z = 2 or z = 8. Shrink it by 2: the solid of every point at least 2 from the puck's outside.

That is exactly the rounds' radius. Each round, moved 2 inward, shrinks onto its tube's center line, the circle of radius 4 at z = 2 or z = 8: it has no area and is an edge of the result, where the moved side, the cylinder of radius 4, meets the moved top or bottom at a right angle. The result is the plain cylinder of radius 4 from z = 2 to z = 8, its edges sharp.

As a set: the puck is that cylinder grown by 2, every point within 2 of it, so shrinking it by 2 gives the cylinder back.

expectedclosed form
volume301.5928947π·4²·6 = 96π: the cylinder of radius 4 from z = 2 to z = 8
area251.32741232π·4² + 2π·4·6 = 80π

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 †–pass–pass–––pass–pass–passrefusedrefused
volume err.1.9e-160.0e+001.9e-161.1e-141.9e-161.9e-161.9e-16
area err.2.3e-160.0e+002.3e-161.1e-142.3e-162.3e-162.3e-16
time19 ms647 ms5.5 ms206 ms7.8 ms4 ms3.8 ms81 ms16 ms
CPU time22 ms647 ms5.3 ms206 ms7.4 ms3.7 ms3.6 ms81 ms16 ms
memory11.4 MB361.7 MB11.2 MB53.9 MB21.2 MB10.3 MB8.5 MB26.5 MB5 MB
LOC207814111211156

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

offset/rounded-puck-shrunk-by-its-rounds.md, the case as written.