swept · ·

An oblique torus tumble through half a turn

swept/tumbling-torus-half-turn · swept, solid-sweep, tumble, torus, regression

The initial torus is centered at (3, 0, 2), with axis parallel to z, major radius 1 and tube radius 0.16. The major radius is the radius of the circle through the tube's centers. It is a ring torus, including its interior.

Let A be the oriented line through (2, 0, 0) in direction (0, 0, 1). Define ℓ = 30°, α = 20° and h = 0.7071. Let B be the oriented line through q = (0, h cos ℓ, h sin ℓ), with unit direction u = (cos α, sin α cos ℓ, sin α sin ℓ).

At roll t, first turn the initial torus by 0.375t about A, then turn that result by -1t about B. Both angles use the same t; the second axis stays fixed in the world. Take the union of every occupied position for all real t from -90° to 90°, including both end poses. This is the continuous swept solid, not a finite union of sampled poses. Overlapped material is counted once; interior envelope sheets are not part of the boundary.

A shorter-interval control for swept/tumbling-torus-full-turn. The roll spans 180 degrees instead of 360 degrees; no other parameter changes.

No closed-form volume or area is asserted. Its answer is the mean of independently implemented kernels that agree under the benchmark's rules.

As a set:

$$\bigcup_{t \in [-90^\circ,\,90^\circ]} R_B(-t)\,R_A(0.375\,t)\,T, \quad T = \bigl\{\,\bigl(\sqrt{(x-3)^2 + y^2} - 1\bigr)^2 + (z-2)^2 \le 0.16^2\,\bigr\}$$

expectedclosed form
volume12.23771545no closed form: next.BREP and cadrs agree to 5e-9; the mean of their values
area79.64399226no closed form: next.BREP and cadrs agree to 2e-9; the mean of their values

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
outcomepassrefused–refused–refused–refused–pass–pass–refusedrefusedrefused
volume err.2.3e-092.3e-098.3e-09
area err.8.1e-101.8e-093.5e-09
time7.52 s627 ms2.1 ms1.4 ms3.5 ms280 ms395 ms1.4 ms46 ms1.1 ms
CPU time10.5 s627 ms1.9 ms1.2 ms3.3 ms280 ms1.35 s1.1 ms46 ms930 µs
memory26.2 MB356.6 MB8.3 MB4.5 MB11.4 MB17.3 MB13.4 MB3.5 MB24.2 MB3.6 MB
LOC10417712374324

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

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