offset · ·

A cone frustum with its top rim rounded, shrunk past the round's radius

offset/frustum-top-rounded-shrunk-past-its-round · 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 its top rim rounded to radius 1.5: a piece of a torus of tube radius 1.5 tangent to the top and to the cone (the bottom rim is left sharp). 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.2.2e-167.5e-136.5e-164.3e-161.1e-151.3e-152.2e-16
area err.0.0e+003.1e-136.5e-162.2e-166.5e-161.3e-154.3e-16
time16 ms643 ms8.5 ms168 ms24 ms3 ms3.4 ms63 ms6.4 ms
CPU time20 ms642 ms8.2 ms168 ms23 ms2.8 ms3.2 ms63 ms6.2 ms
memory11.6 MB368.6 MB11.7 MB54.2 MB21.7 MB9.4 MB8.7 MB25.8 MB5 MB
LOC211585101210226

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

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