swept · ·

A box slid aslant

swept/box-slid-aslant · swept, solid-sweep, slide, polyhedron, zonotope

The solid a box fills as it slides along a straight line without turning. The box starts as the box from (0, 0, 0) to (10, 6, 4) and slides along the vector (8, 5, 3), ending as the box from (8, 5, 3) to (18, 11, 7). Make the solid of everything the box passes through.

It is a convex polyhedron with twelve faces, in six parallel pairs: the box's three pairs of faces, and three pairs of parallelograms, each with one edge of the box and the slide's vector as its sides.

As a set:

$$\bigl([0,10]\times[0,6]\times[0,4]\bigr) \oplus \{\,s\,(8,5,3) : 0 \le s \le 1\,\}$$

expectedclosed form
volume812abc + |dx|bc + |dy|ca + |dz|ab, a, b, c = 10, 6, 4, d = (8, 5, 3)
area542.61893192(ab + bc + ca) + 2(a|e₁×d| + b|e₂×d| + c|e₃×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
outcomepasspass †pass †passpass †pass †pass †pass †refusedpasspass †pass–passrefusedpass †
volume err.7.0e-165.5e-142.8e-162.8e-164.2e-161.4e-162.8e-162.2e-122.8e-162.8e-162.8e-162.8e-163.2e-12
area err.6.3e-162.1e-162.1e-162.1e-162.1e-162.1e-164.2e-161.1e-124.2e-160.0e+002.1e-162.1e-167.6e-12
time164 ms629 ms4.6 ms8.5 ms8.4 ms1.22 s1.8 ms14 ms57 ms6.6 ms205 ms4.9 ms3.7 ms44 ms4.3 ms
CPU time378 ms628 ms4.4 ms8.3 ms8.2 ms1.22 s1.6 ms15 ms56 ms6.4 ms205 ms8.6 ms3.5 ms44 ms4.1 ms
memory40 MB368.8 MB7.2 MB9.9 MB7.3 MB53.1 MB5.7 MB25 MB47.2 MB12.3 MB19.6 MB8.3 MB8.4 MB23.4 MB5 MB
LOC213440820181921084788247

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

swept/box-slid-aslant.md, the case as written.