swept · ·

A tilted box pushed aslant wholly through a plate

swept/tilted-box-pushed-aslant-through-plate · swept, solid-sweep, slide, prism, polyhedron, oblique, boolean, cut

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

The box is 4 × 3 × 2, its edges along the orthonormal directions e₁ = (2, 1, 2)/3, e₂ = (−2, 2, 1)/3 and e₃ = (1, 2, −2)/3: everything (−2, −1, −8) + a e₁ + b e₂ + c e₃ with |a| ≤ 2, |b| ≤ 1.5 and |c| ≤ 1. As placed it is wholly below the plate.

It slides without turning along the vector (4, 2, 18), ending centered on (2, 1, 10), wholly above the plate. Cut from the plate everything the box passes through.

No face or edge of the box is level or upright: where it passes, its silhouette turns at its corners. Each level of the plate loses the box's whole shadow along the push, a hexagon, so the hole is an oblique hexagonal prism.

expectedclosed form
volume3546.370373600 − 4·H, H the box's shadow along the push on a level plane, a hexagon: every level of the plate loses the same hexagon (each level of the box passes it), its area exact
area2309.9172262280 − 2H + Σ over the hexagon's six edges e of |e × (4/18, 2/18, 1)·4|: the hole is an oblique prism on it

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 †–pass–pass–pass–passpasspass †
volume err.1.3e-167.7e-162.6e-162.6e-161.2e-132.6e-162.6e-160.0e+001.3e-148.3e-14
area err.0.0e+002.8e-152.0e-162.0e-162.9e-132.0e-162.0e-162.0e-167.3e-152.9e-13
time221 ms670 ms8.6 ms3.70 s25 ms9.2 ms5.8 ms9.1 ms314 ms6.7 ms
CPU time446 ms669 ms8.3 ms3.70 s27 ms8.8 ms10 ms8.9 ms478 ms6.5 ms
memory51.4 MB368.1 MB10.3 MB53 MB25.3 MB17 MB9.7 MB8.6 MB41.8 MB4.9 MB
LOC2515132128121716309

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

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