offset · ·

A cone grown by 1

offset/cone-grown · offset, grow, analytic, apex, torus

A cone on the z axis with a base of radius 3 at z = 0 and its apex at (0, 0, 4), grown by 1: the solid of every point within 1 of the cone.

The base moves down to z = −1, and the cone's side moves 1 outward to a cone of the same angle, whose apex is 1/sin α = 5/3 higher, α = atan(3/4) being the half-angle at the apex. The base's rim, where the side meets the base at an angle of β = atan(4/3) inside the cone, becomes a piece of a torus's tube of radius 1 about the rim's circle, turning through π − β. The apex becomes a cap of a ball of radius 1 about it, which meets the moved side along a circle of radius 0.8 at z = 4.6.

As a set:

$$\{\,\rho \le 3\bigl(1 - \tfrac z4\bigr),\ 0 \le z \le 4\,\} \oplus B_{1}$$

expectedclosed form
volume150.721758πR²H/3 + π(R² + RL)d + π(H + R(π − β))d² + 4πd³/3, R = 3, H = 4, L = 5, β = atan(4/3), d = 1
area154.8358589π(R² + RL) + 2π(H + R(π − β))d + 4πd²

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
outcomepasspassrefusedwrong–passrefusedpass–passrefusedpass–passrefusedrefused
volume err.1.9e-162.5e-131.9e-033.8e-161.9e-163.8e-161.9e-161.9e-16
area err.0.0e+001.3e-135.4e-030.0e+001.8e-160.0e+000.0e+001.8e-16
time12 ms641 ms1.2 ms6.5 ms102 ms1.3 ms42 ms43 ms2.1 ms2.4 ms6.1 ms47 ms1.1 ms
CPU time15 ms640 ms960 µs6.3 ms101 ms1.1 ms43 ms42 ms1.9 ms2.2 ms5.9 ms47 ms940 µs
memory11.1 MB365.4 MB4 MB11.7 MB48.5 MB5.2 MB22.7 MB24 MB9.7 MB7 MB8.9 MB24.7 MB3.7 MB
LOC67575968688164

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

offset/cone-grown.md, the case as written.