swept · ·

A bar plunged aslant into a plate, stopping inside

swept/bar-plunged-aslant-into-plate · swept, solid-sweep, slide, prism, polyhedron, stopped, boolean, cut

A plate, the box from (0, −5, 0) to (20, 5, 4), with a pocket cut into its underside by a bar pushed up aslant into it, stopping halfway through.

The bar is a prism of square section stood on a corner: everything with 6 ≤ x ≤ 14 and |y| + |z + 6| ≤ 1. Its section's corners are (y, z) = (0, −7), (1, −6), (0, −5) and (−1, −6).

It slides without turning by 8 along the direction (0.3, 0, √(1 − 0.3²)), leaning 0.3 toward +x from straight up, so that it ends with its top edge at z = −5 + 8√0.91 ≈ 2.63, inside the plate. Cut from the plate everything the bar passes through.

The bar is convex, so what it passes through is the convex hull of the bar where it starts and the bar where it stops; the pocket is the part of that within the plate.

expectedclosed form
volume764.8696076800 less the part within the plate of the convex hull of the bar where it starts and where it stops (a convex polyhedron, its measures exact: 35.130392369170131)
area681.2450487640 + that polyhedron's surface within the plate (74.502990500237274) − twice its face on z = 0 (16.628970902033146); every face a plane

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.4.5e-161.3e-141.5e-163.0e-163.4e-153.0e-163.0e-163.0e-164.5e-166.2e-13
area err.5.0e-161.3e-145.0e-166.7e-161.9e-146.7e-165.0e-165.0e-165.0e-161.0e-12
time157 ms645 ms8.2 ms1.43 s42 ms9.5 ms5 ms5.6 ms180 ms5.3 ms
CPU time328 ms644 ms7.9 ms1.43 s44 ms9.2 ms8.9 ms5.3 ms337 ms5.1 ms
memory37 MB368.5 MB10 MB52.3 MB25.3 MB16.9 MB9.4 MB8.9 MB53 MB4.8 MB
LOC2417112025101217358

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

swept/bar-plunged-aslant-into-plate.md, the case as written.