swept · ·

A torus tumbled through space

swept/tumbling-torus · swept, solid-sweep, tumble, torus, envelope

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

The torus has its center at (3, 0, 2) and its axis parallel to the z axis; the circle through its tube's centers has radius 1, and its tube has radius 0.5.

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

Seen from that frame, the torus'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 torus passes through, so seen, as t runs from −75° to 75°.

No turn keeps any line of the torus fixed, so the boundary is an envelope of no simpler kind.

As a set:

$$\bigcup_{t \in [-75^\circ,\,75^\circ]} R_B(-t)\,R_A(\tfrac t4)\,T, \quad T = \bigl\{\,\bigl(\sqrt{(x-3)^2 + y^2} - 1\bigr)^2 + (z-2)^2 \le 0.5^2\,\bigr\},\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
outcomebuiltrefusedrefusedrefusedrefusedrefusedrefusedrefusedrefusedbuiltrefusedbuilt–refusedrefusedrefused
volume25.27525.275125.2751
area59.180259.179659.1796
time5.67 s630 ms1.2 ms2.1 ms1.1 ms1.4 ms1.1 ms3.4 ms52 ms8.60 s1.9 ms545 ms1.3 ms46 ms1.2 ms
CPU time12.0 s630 ms1 ms1.9 ms1 ms1.2 ms910 µs3.2 ms52 ms8.60 s1.7 ms1.89 s1.1 ms46 ms990 µs
memory32.8 MB356.8 MB3.6 MB8.3 MB4.8 MB4.5 MB3.7 MB11.5 MB47.1 MB28 MB9.6 MB18.6 MB3.4 MB24.1 MB3.4 MB
LOC18671267102066154324

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

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