swept · ·

A cube tumbled through space

swept/tumbling-cube · swept, solid-sweep, tumble, general-motion, polyhedron

The solid a cube fills as it tumbles: it turns about one axis while being watched from a frame that turns about another.

The cube is the box from (2.4, −0.6, 1.4) to (3.6, 0.6, 2.6): edge 1.2, centered at (3, 0, 2).

It moves by two turns at once, both driven by one parameter t:

Seen from that frame, the cube's place at t is its place turned by t/4 about the first line and then by −t about the second. Make the solid of everything the cube passes through, so seen, as t runs from −75° to 75°.

No turn keeps any line of the cube fixed, and its silhouette changes from face to face as it tumbles.

As a set:

$$\bigcup_{t \in [-75^\circ,\,75^\circ]} R_B(-t)\,R_A(\tfrac t4)\,T, \quad T = [2.4,\,3.6]\times[-0.6,\,0.6]\times[1.4,\,2.6],\quad A,\ B \text{ the two lines above, in that order}$$

Unsettled. This solid has no closed form, and no two kernels yet agree on it to 1e-8, so it has no answer to grade against. Below is what each kernel builds: built means a watertight, consistently oriented solid, whatever its measures; the table says which kernels agree with which.

Drawing

Top view
Top
Isometric view
Isometric
Front view
Front
Right view
Right

Third-angle projection, the three views at one scale. Drawn from next.BREP's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomebuiltrefused–refused–refused–refused–built–built–refusedrefusedrefused
volume11.099311.099311.0993
area35.165335.165335.1653
time13.4 s624 ms2.5 ms1.5 ms3.6 ms2.98 s973 ms1.65 s48 ms1.2 ms
CPU time36.8 s623 ms2.3 ms1.3 ms3.4 ms2.98 s1.60 s1.65 s48 ms1 ms
memory38.5 MB356.7 MB7.9 MB4.7 MB11.3 MB16.5 MB29.9 MB17.6 MB24.2 MB3.4 MB
LOC186128121128264

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

swept/tumbling-cube.md, the case as written.