swept · ·

A rod grooved by a wheel of two beads

swept/two-beads-slid-through-rod · swept, solid-sweep, slide, torus, boolean, union, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, grooved along its length by a wheel of two beads slid past it. The beads are two tori on one axis, which runs parallel to the y axis through (11.5, 0, −9):

The two beads overlap, and the wheel is their union. It starts below the rod, as placed, and slides without turning 40 along the z axis, up to where it is wholly above the rod. Cut from the rod everything the wheel passes through.

As a set:

$$\{\,\rho \le 5,\ 0 \le z \le 20\,\} \setminus \bigl(T \oplus \{\,s\,(0,0,40) : 0 \le s \le 1\,\}\bigr), \quad T = \bigl\{\,\bigl(\sqrt{(x-11.5)^2 + (z+9)^2} - 6\bigr)^2 + y^2 \le 2^2\,\bigr\} \cup \bigl\{\,\bigl(\sqrt{(x-11.5)^2 + (z+9)^2} - 6\bigr)^2 + (y-1.5)^2 \le 1.5^2\,\bigr\}$$

expectedclosed form
volume1486.449867no closed form taken (the rod's disk less two overlapping disks): OCCT, arris and cad-kernel, built independently from this description, agree to 8e-16 (1486.4498667518674 and 1486.4498667518671 and 1486.4498667518683; the mean)
area787.2349038no closed form taken (the rod's disk less two overlapping disks): OCCT, arris and cad-kernel, built independently from this description, agree to 2e-15 (787.234903804165 and 787.234903804165 and 787.234903804167; the mean)

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 †pass †passwrong † ▦pass †pass †pass †wrong †passpass †pass–passwrongrefused
volume err.9.2e-166.3e-151.1e-151.1e-159.2e-161.1e-158.0e-103.6e-101.2e-093.1e-161.1e-154.0e-06
area err.1.2e-152.7e-151.3e-151.2e-154.3e-161.3e-156.7e-102.0e-106.6e-101.3e-151.6e-154.2e-06
time9.37 s1.69 s37 ms150 ms82 ms65 ms11 ms69 ms400 ms45 ms286 ms57 ms133 ms136 ms41 ms
CPU time12.6 s1.69 s37 ms232 ms82 ms65 ms11 ms131 ms396 ms45 ms286 ms132 ms132 ms240 ms40 ms
memory22.4 MB378.6 MB13.5 MB17.7 MB12.7 MB47.8 MB10.1 MB28.4 MB84.4 MB18.5 MB19.8 MB20.8 MB9.4 MB38.6 MB5.3 MB
LOC236343123210161511141911164114

† works around a missing feature. ▦ a faceted solid: a mesh stored as B-rep faces. Pick an entry to see its solid, its measures and its code.

swept/two-beads-slid-through-rod.md, the case as written.