offset · ·

An elliptic cylinder shrunk by 1

offset/elliptic-cylinder-shrunk · offset, shrink, ellipse

The elliptic cylinder of geometry/elliptic-cylinder, the ellipse x²/25 + y²/9 ≤ 1 in the plane z = 0 extruded straight up to z = 10, shrunk by 1: the solid of every point at least 1 from its outside.

The ends move to z = 1 and z = 9, and the edges stay sharp. The side moves in along its normals to the curve at distance 1 inside the ellipse, which is no ellipse, extruded from z = 1 to z = 9. The ellipse curves most tightly at the ends of its long axis, (±5, 0), with radius of curvature b²/a = 1.8; moved in by 1, less than that, the curve stays smooth, and the area inside it and its length follow from the ellipse's own (Steiner): πab − pd + πd² and p − 2πd.

E is the complete elliptic integral of the second kind, of parameter m = 1 − b²/a² = 16/25, so p is the ellipse's perimeter.

As a set:

$$\{\,\tfrac{x^2}{25} + \tfrac{y^2}{9} \le 1,\ 0 \le z \le 10\,\} \ominus B_{1}$$

expectedclosed form
volume197.9078688(πab − pd + πd²)(h − 2d), p = 4aE(1 − b²/a²), a = 5, b = 3, h = 10, d = 1
area203.42747562(πab − pd + πd²) + (p − 2πd)(h − 2d)

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
outcomepasspass–pass–pass–refused–pass–pass–passrefusedrefused
volume err.1.0e-108.5e-103.5e-071.8e-072.6e-092.1e-102.2e-10
area err.8.3e-117.8e-101.4e-071.9e-077.8e-101.5e-101.1e-11
time775 ms657 ms8.7 ms1.21 s115 ms76 ms13 ms14 ms56 ms1.3 ms
CPU time1.28 s656 ms8.4 ms1.21 s116 ms76 ms18 ms14 ms56 ms1.1 ms
memory16.1 MB369.9 MB9.9 MB54.5 MB21.8 MB21.2 MB8.5 MB9.9 MB26.1 MB4.7 MB
LOC64754797135

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

offset/elliptic-cylinder-shrunk.md, the case as written.