swept · ·

A tilted rod grooved by a wheel screwed along it

swept/torus-screwed-through-a-tilted-rod · swept, solid-sweep, screw, helix, torus, envelope, boolean, cut, adversarial

The rod and groove of swept/torus-screwed-through-rod, turned rigidly about the origin so that the rod's axis is no longer a coordinate axis. Write u = (2, −2, 1)/3, v = (2, 1, −2)/3 and w = (1, 2, 2)/3: three unit vectors square to one another, right-handed (u × v = w). The point that case puts at (x, y, z) is here at x·u + y·v + z·w.

So: a rod, the cylinder of radius 5 about the line through the origin along w, from the origin to 20w = (20/3, 40/3, 40/3), with a helical groove ground around it by a wheel carried along a screw, as a thread is ground.

The wheel is a torus: the circle through its tube's centers has radius 6, and its tube has radius 2. As placed, its center is 11.5u = (23/3, −23/3, 23/6), so the part of its tube nearest the rod is centered at 5.5u = (11/3, −11/3, 11/6) and reaches 1.5 into the rod. Its axis passes through its center square to u, along cos h·v − sin h·w, where h = atan(2π·5.5 / 30) ≈ 49.04° is the helix angle. The wheel then lies along the helix that the screw below carries the point 5.5u along, as a grinding wheel is set.

The screw is about the rod's axis: the wheel turns right-handed about w (from u toward v) and rises 30 along w for every whole turn, rigidly. It runs from a turn of −108° (the wheel lowered 9, wholly below the rod) to a turn of +348° (raised 29, wholly above it). Cut from the rod everything the wheel passes through.

The groove's section square to the axis is the same at every station along it, turned.

expectedclosed form
volume1460.630003no closed form: swept/torus-screwed-through-rod's answer (the mean of cad-kernel's, next.BREP's and cadrs's values, which agree to 7e-10), the solid being that one turned rigidly
area791.5632226no closed form: swept/torus-screwed-through-rod's answer (the mean of cad-kernel's, next.BREP's and cadrs's values, which agree to 1e-9), the solid being that one turned rigidly

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–––pass–pass–pass–refused
volume err.4.6e-104.4e-102.2e-125.6e-10
area err.3.0e-104.3e-103.5e-106.4e-10
time5.33 s637 ms1.8 ms189 ms30 ms511 ms1.2 ms
CPU time13.0 s636 ms1.5 ms188 ms33 ms509 ms1000 µs
memory32.2 MB356.7 MB4.5 MB12.8 MB9.9 MB33.6 MB3.4 MB
LOC23784912294

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

swept/torus-screwed-through-a-tilted-rod.md, the case as written.