swept · ·

A void spun by a cube turned about its long diagonal inside a block

swept/cube-spun-on-its-diagonal-inside-a-block · swept, solid-sweep, turn, whole-turn, polyhedron, hyperboloid, cone, void, boolean, cut

A block, the box from (−3, −3, −3) to (3, 3, 3), with a closed void inside it: everything a cube passes through as it turns a whole turn about its own long diagonal, wholly inside the block.

The cube is the box from (−1, −1, −1) to (1, 1, 1). It turns rigidly a whole turn about the line through (−1, −1, −1) and (1, 1, 1), its long diagonal. Cut from the block everything the cube passes through.

The cube's six edges that meet the diagonal's ends sweep two cones, and its six other edges, skew to the diagonal, sweep a hyperboloid of one sheet between them, of waist radius √2. The void touches nothing outside it: the result is the block with a sealed cavity, bounded by two shells.

expectedclosed form
volume201.48960516³ − 8π/√3: the cube's shadow about its diagonal is two cones and between them a hyperboloid of one sheet, radius² 2 + 2h² at h along the diagonal
area248.29761696·6² + two cones 2·π√(8/3)·2 + the hyperboloid 2π∫√(2 + 6h²) dh over |h| ≤ 1/√3 = 2π√(2/3)(√2 + asinh 1)

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 †–refused–pass †–pass–pass–pass–pass †refusedrefused
volume err.2.8e-163.7e-147.1e-162.8e-168.3e-112.8e-162.8e-16
area err.2.3e-166.0e-143.4e-163.4e-167.8e-131.1e-161.1e-16
time49 ms1.86 s218 ms156 ms14 ms12 ms3.8 ms8.3 ms155 ms1.3 ms
CPU time120 ms1.86 s309 ms156 ms14 ms12 ms3.6 ms8 ms300 ms1.1 ms
memory14.6 MB398.9 MB29.2 MB48.3 MB23.3 MB16.9 MB9.2 MB8.8 MB31 MB3.4 MB
LOC1810132312201032234

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

swept/cube-spun-on-its-diagonal-inside-a-block.md, the case as written.