offset · ·

An elliptic cylinder shrunk past its curvature

offset/elliptic-cylinder-shrunk-past-its-curvature · offset, shrink, ellipse, self-intersection

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 2.5: the solid of every point at least 2.5 from its outside.

The ends move to z = 2.5 and z = 7.5. The side would move in along its normals by 2.5, but the ellipse curves more tightly than that near the ends of its long axis, where its radius of curvature falls to b²/a = 1.8: there the curve moved in by 2.5 turns back on itself in a swallowtail, two cusps and a loop crossing the long axis. Of that curve, only the part at least 2.5 from the ellipse everywhere bounds the result. The loops are trimmed away where the curve crosses itself on the long axis, and the shrunk side meets itself there in a sharp vertical edge at each end, from z = 2.5 to z = 7.5.

The trimmed curve's area and length have no closed form here, so the case is unsettled until two kernels agree.

As a set:

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

Unsettled. This solid has no closed form, and no two kernels yet agree on it to 1e-8, so it has no answer to grade against. Below is what each kernel builds: built means a watertight, consistently oriented solid, whatever its measures; the table says which kernels agree with which.

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
outcomerefusedtimeout–built–refused–refused–built–built–refusedrefusedrefused
volume15.313415.313415.3134
area51.93251.93251.932
time1.9 ms688 ms13 ms26 ms6.6 ms73 ms11 ms202 ms55 ms1.3 ms
CPU time1.7 ms687 ms12 ms26 ms6.9 ms72 ms14 ms202 ms55 ms1.1 ms
memory7 MB370.5 MB10.8 MB43.3 MB20 MB22.4 MB7.4 MB9.3 MB24 MB4.7 MB
LOC64754795135

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

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