offset · ·

A rounded puck shrunk past its rounds' radius

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

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 3: the solid of every point at least 3 from the puck's outside.

That is more than the rounds' radius. A round moved 3 inward would be a torus of tube radius 2 − 3 = −1, turned inside out: it is no part of the result, and the moved side and the moved top or bottom run on past it until they meet in a sharp edge. The result is the plain cylinder of radius 3 from z = 3 to z = 7, its edges sharp.

As a set: the puck is the cylinder of radius 4 from z = 2 to z = 8 grown by 2, so shrinking it by 3 is shrinking that cylinder by 1.

expectedclosed form
volume113.0973355π·3²·4 = 36π: the cylinder of radius 3 from z = 3 to z = 7
area131.94689152π·3² + 2π·3·4 = 42π

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
outcomepass †pass †–pass–pass–––pass–pass–passrefusedrefused
volume err.5.0e-162.5e-162.5e-161.0e-152.5e-165.0e-162.5e-16
area err.4.3e-160.0e+000.0e+008.6e-160.0e+004.3e-160.0e+00
time21 ms642 ms12 ms228 ms8.6 ms4 ms4.3 ms81 ms16 ms
CPU time25 ms641 ms12 ms227 ms8.4 ms3.7 ms4 ms81 ms15 ms
memory11.7 MB361.6 MB11.6 MB54.1 MB21.7 MB10.1 MB8.5 MB26.5 MB5.3 MB
LOC20785111211156

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

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