offset · ·

A torus grown past its hole

offset/torus-grown-past-its-hole · offset, grow, analytic, torus, self-intersection, apple

A solid torus about the z axis, centered on the origin, whose tube has radius 2 about a middle circle of radius 4. Grow it by 3: the solid of every point within 3 of the torus.

That is every point within 5 of the middle circle. The grown tube's radius, 5, is more than the middle circle's, 4, so the grown torus closes over its hole: the tube, offset, would pass through the z axis and cross itself, and the part of it that crosses the axis lies inside the solid and is no part of its boundary. The grown solid is an apple: a single face, the outer part of the self-crossing torus of radius 5 about the circle of radius 4, which meets the z axis at (0, 0, 3) and (0, 0, −3) in two dimples, each a point where the face comes to the axis at an angle, as a cone does at its apex.

Its section through the axis, on one side of it, is the disk of radius 5 about (4, 0) less the part of that disk beyond the axis.

As a set:

$$\{\,(\rho - 4)^2 + z^2 \le 2^2\,\} \oplus B_{3}$$

expectedclosed form
volume1984.2874392π(πRs² + 2c³/3 − R(s²φ − Rc)), R = 4, s = r + d = 5, c = √(s² − R²) = 3, φ = acos(R/s)
area816.33444282π(2Rs(π − φ) + 2sc)

Drawing

Top view
Top
Isometric view
Isometric
Front view
Front
Right view
Right

Third-angle projection, the three views at one scale. Drawn from next.BREP's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepasswrongrefusedpass–refusedpassrefused–passrefusedpass–passrefusedrefused
volume err.1.1e-161.0e+001.1e-161.1e-163.4e-161.1e-161.1e-16
area err.0.0e+009.7e-010.0e+000.0e+004.2e-160.0e+000.0e+00
time3.5 ms640 ms1.1 ms6.6 ms408 ms1.2 ms7.3 ms3.8 ms30.8 s2 ms22 ms46 ms1.3 ms
CPU time4.6 ms639 ms960 µs6.4 ms408 ms1000 µs7.7 ms3.6 ms30.8 s1.8 ms22 ms47 ms1.1 ms
memory10.7 MB363.9 MB3.9 MB10.7 MB50.5 MB4.5 MB20.2 MB12.9 MB31.8 MB6.8 MB8.6 MB24 MB4.8 MB
LOC695759581388135

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

offset/torus-grown-past-its-hole.md, the case as written.