swept · ·

A box slid along the plane of its faces

swept/box-slid-along-its-face · swept, solid-sweep, slide, polyhedron, coplanar, adversarial

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, 0), level, ending as the box from (8, 5, 0) to (18, 11, 4). Make the solid of everything the box passes through.

It is swept/box-slid-aslant with the slide in the plane of the box's top and bottom, so those two faces slide within their own planes: the result is a prism 4 high, from z = 0 to z = 4, over the hexagon the rectangle from (0, 0) to (10, 6) sweeps, through (0, 0), (10, 0), (18, 5), (18, 11), (8, 11) and (0, 6). Its top and bottom are those hexagons, and its six sides are rectangles 4 high.

As a set:

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

expectedclosed form
volume632abc + |dx|bc + |dy|ca + |dz|ab = (ab + a|dy| + b|dx|)c, a, b, c = 10, 6, 4, d = (8, 5, 0)
area519.47184912(ab + bc + ca) + 2(a|e₁×d| + b|e₂×d| + c|e₃×d|) = 444 + 8√89

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
volume err.0.0e+001.1e-141.8e-161.8e-163.6e-161.8e-164.5e-13
area err.2.2e-162.2e-162.2e-164.4e-162.2e-162.2e-168.3e-13
time51 ms627 ms73 ms4.8 ms4.8 ms3.7 ms3.4 ms
CPU time117 ms627 ms73 ms4.6 ms8.3 ms3.5 ms3.2 ms
memory18.1 MB367.9 MB49 MB12.1 MB9.1 MB8.4 MB4.9 MB
LOC21958887

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

swept/box-slid-along-its-face.md, the case as written.