swept · ·

An ellipsoid pushed aslant wholly through a plate

swept/ellipsoid-pushed-aslant-through-plate · swept, solid-sweep, slide, ellipsoid, quadric, oblique, elliptic-integral, boolean, cut

A plate, the box from (−15, −15, 0) to (15, 15, 4), with a hole punched through it by an ellipsoid pushed aslant wholly through it.

The ellipsoid has semi-axes 3, 2 and 1.5 along x, y and z: everything with ((x + 2)/3)² + ((y + 1.5)/2)² + ((z + 4)/1.5)² ≤ 1, centered at (−2, −1.5, −4), wholly below the plate.

It slides without turning along the vector (4, 3, 12), ending centered at (2, 1.5, 8), wholly above the plate. Cut from the plate everything the ellipsoid passes through.

The ellipsoid touches what it sweeps along one smooth closed curve, where its normal is square to the push. That curve's path is the hole's wall, an oblique elliptic cylinder: every level of the plate loses the same ellipse.

As a set:

$$\bigl([-15,15]^2\times[0,4]\bigr) \setminus \bigl(E \oplus \{\,s\,(4,3,12) : 0 \le s \le 1\,\}\bigr), \quad E = \bigl\{\,\bigl(\tfrac{x+2}{3}\bigr)^2 + \bigl(\tfrac{y+1.5}{2}\bigr)^2 + \bigl(\tfrac{z+4}{1.5}\bigr)^2 \le 1\,\bigr\}$$

expectedclosed form
volume3522.2654183600 − 4·π√(b²c²u₁² + a²c²u₂² + a²b²u₃²)·|d|/|d_z|, (a, b, c) = (3, 2, 1.5), u = d/|d|, d = (4, 3, 12): each level loses the ellipsoid's shadow along the push
area2307.9842962280 − 2·(that shadow) + 4|d|/|d_z|·4p E(1 − q²/p²), p, q the semi-axes of the ellipsoid's shadow on the plane square to d (the square roots of the eigenvalues of P diag(a², b², c²) P, P the projection across d) and E the complete elliptic integral of the second kind (parameter m)

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
outcomepass †pass †–pass †–pass †–refused–pass–pass–passrefusedrefused
volume err.3.9e-161.1e-112.2e-093.7e-092.6e-165.2e-163.2e-11
area err.3.9e-163.2e-125.1e-091.1e-090.0e+003.9e-161.9e-11
time18 ms770 ms248 ms203 ms4 ms15 ms34 ms213 ms27 ms1.2 ms
CPU time19 ms769 ms252 ms203 ms3.7 ms14 ms70 ms212 ms27 ms1 ms
memory11.8 MB370 MB19.6 MB48.7 MB11.6 MB18.2 MB11.9 MB9.9 MB12.5 MB3.6 MB
LOC19151413111131204

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

swept/ellipsoid-pushed-aslant-through-plate.md, the case as written.