offset · ·

A rounded cone frustum shrunk past its rounds' radius

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

A cone frustum on the z axis, from the disk of radius 6 at z = 0 to the disk of radius 3 at z = 6 (its side the cone 2r + z = 12), with both its circular edges rounded to radius 1.5: the top rim by a piece of a torus tangent to the top and to the cone, the bottom rim by one tangent to the bottom and to the cone, each of tube radius 1.5. Shrink it by 2: the solid of every point at least 2 from the frustum's outside.

That is more than the rounds' radius. A round moved 2 inward would be a torus of tube radius 1.5 − 2 < 0, turned inside out: it is no part of the result, and the moved cone and the moved top or bottom run on past it until they meet in a sharp edge. The result is the frustum shrunk with sharp edges: from z = 2 to z = 4, its side the cone 2r + z = 12 − 2√5 (the side moved 2 along its normal), so its radius is (12 − 2√5 − 2)/2 at the bottom and (12 − 2√5 − 4)/2 at the top.

As a set: the rounded frustum lies between the sharp frustum shrunk by 1.5 and grown back by 1.5 and the sharp frustum itself, so for any distance of at least 1.5 its points at least that far inside are the sharp frustum's:

$$\{\, d \le z \le 6 - d,\ 2\sqrt{x^2 + y^2} + z \le 12 - d\sqrt{5} \,\},\quad d = 2$$

expectedclosed form
volume32.72736262πh(a² + ab + b²)/3, h = 6 − 2d, a = (12 − d√5 − d)/2, b = (12 − d√5 − (6 − d))/2, d = 2
area65.58196622πa² + πb² + π(a + b)√((a − b)² + h²), with a, b and h as for the volume

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.6.5e-167.5e-136.5e-164.3e-161.1e-151.3e-152.2e-16
area err.4.3e-163.1e-136.5e-162.2e-166.5e-161.3e-154.3e-16
time22 ms636 ms13 ms277 ms34 ms3.2 ms4.3 ms73 ms13 ms
CPU time27 ms635 ms13 ms276 ms34 ms2.9 ms4.1 ms73 ms13 ms
memory12 MB368.3 MB11.9 MB54.3 MB22.6 MB8.9 MB8.7 MB26.8 MB5.2 MB
LOC21158910125226

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

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