offset · ·

A torus shrunk by 1.5

offset/torus-shrunk · offset, shrink, analytic, torus

A solid torus about the z axis, centered on the origin, whose tube has radius 3 about a middle circle of radius 10. Shrink it by 1.5: the solid of every point at least 1.5 from the torus's outside.

The shrunk solid is the torus about the same middle circle whose tube has radius 1.5.

As a set:

$$\{\,(\rho - 10)^2 + z^2 \le 3^2\,\} \ominus B_{1.5}$$

expectedclosed form
volume444.1321982π²R(r − d)², R = 10, r = 3, d = 1.5
area592.17626414π²R(r − 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
outcomepasspasspasspass–passpasspass–passpass †pass–passrefusedpass †
volume err.5.1e-161.3e-161.3e-163.8e-163.8e-160.0e+003.8e-161.3e-163.5e-151.3e-167.7e-166.4e-16
area err.0.0e+000.0e+001.9e-161.9e-167.7e-160.0e+001.9e-160.0e+002.3e-150.0e+003.8e-163.8e-16
time2.9 ms611 ms1.8 ms4.2 ms919 ms1.1 ms5.4 ms5.3 ms3.41 s1.9 ms1.7 ms47 ms66 ms
CPU time4.2 ms610 ms1.6 ms3.9 ms918 ms990 µs5.9 ms5.1 ms3.41 s1.7 ms1.5 ms47 ms66 ms
memory10.9 MB363.8 MB7.2 MB9.6 MB51.8 MB4.4 MB21.3 MB16.7 MB31.7 MB6.7 MB8 MB23.8 MB10.9 MB
LOC6920759581388135

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

offset/torus-shrunk.md, the case as written.