offset ·

A ball-tipped cone shrunk past its tip's radius

offset/ball-tipped-cone-shrunk-past-its-tip · offset, shrink, analytic, cone, sphere, round, vanishing-face

A cone with its tip rounded: the cone on the z axis with its base, of radius 6, at z = 0 and its apex at z = 12, so that its side leans in 1 for every 2 it rises, and the tip rounded by a ball of radius 1 tangent to the side. The ball's center is on the axis at z = 12 − √5, and it touches the side along the circle of radius 2/√5 at z = 12 − 4/√5; above that circle the solid's surface is the ball, below it the cone. Shrink it by 1.5: the solid of every point at least 1.5 from the solid's outside.

The side, moved 1.5 inward, is the cone about the same axis with the same lean and its apex 1.5√5 lower, at z = 12 − 1.5√5. The ball's face, moved 1.5 inward, would be a ball of radius 1 − 1.5, less than nothing: it is no part of the result, and the moved side runs on to its own apex. The base moves up to z = 1.5.

The result is a plain cone: its base, of radius h/2, at z = 1.5 and its apex h above, at z = 12 − 1.5√5, with h = 10.5 − 1.5√5 ≈ 7.146.

As a set: every point with 1.5 ≤ z ≤ 12 − 1.5√5 and ρ ≤ (12 − 1.5√5 − z)/2, ρ its distance from the z axis.

expectedclosed form
volume95.5298446πh³/12, h = 10.5 − 1.5√5: the cone of height h and base radius h/2
area129.7839976πh²(1 + √5)/4: its base and its side

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.3.0e-166.2e-133.0e-163.0e-163.0e-161.8e-156.0e-16
area err.4.4e-163.6e-130.0e+000.0e+002.2e-161.3e-154.4e-16
time34 ms632 ms3.9 ms106 ms54 ms9.9 ms2.9 ms49 ms1.2 ms
CPU time37 ms631 ms3.7 ms106 ms54 ms13 ms2.7 ms50 ms1 ms
memory12.2 MB361.8 MB10.8 MB48.8 MB21.5 MB10.3 MB8.5 MB25.6 MB4.7 MB
LOC2558196752517

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

offset/ball-tipped-cone-shrunk-past-its-tip.md, the case as written.