swept · ·

A rod threaded by a ball

swept/ball-thread-groove · swept, solid-sweep, canal, helix, boolean, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, with a round-bottomed helical groove cut around it by a ball of radius 1. The ball's center follows a helix of radius 5 about the z axis, so it runs on the rod's surface: it starts at (5, 0, −2), turns right-handed (from +x toward +y) and rises 4 each turn, for six whole turns, ending at (5, 0, 22). The ball is clear of the rod at both ends. Cut from the rod everything the ball passes through.

Neighboring turns of the groove do not meet: they are 4 apart and the ball is 2 across.

As a set:

$$\{\,\rho \le 5,\ 0 \le z \le 20\,\} \setminus \bigcup_{\theta \in [0,\,2160^\circ]} B_1\bigl(5\cos\theta,\ 5\sin\theta,\ -2 + 4\,\tfrac{\theta}{360^\circ}\bigr)$$

expectedclosed form
volume1343.008885no closed form (the groove's section is bounded by the tube's cut with the rod): arris and cad-kernel, built independently from this description, agree to 8e-11 (1343.0088855322617 and 1343.0088854208852; the mean); OCCT also agrees, to 2e-9
area880.5540322no closed form (the groove's section is bounded by the tube's cut with the rod): arris and cad-kernel, built independently from this description, agree to 6e-11 (880.5540321979142 and 880.554032252641; the mean); OCCT also agrees, to 2e-9

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
outcomepass ✦pass †pass †passtimeout †pass †wrong † ▦refused †refusedpasswrong †pass–passpassrefused
volume err.9.4e-092.9e-071.7e-111.3e-102.3e-079.9e-053.2e-116.6e-121.6e-095.0e-119.4e-09
area err.1.4e-101.5e-078.5e-119.5e-116.3e-073.3e-032.7e-103.2e-041.1e-092.1e-101.4e-10
time972 ms1.24 s27.1 s8.67 s120.0 s1.21 s4.44 s913 ms58 ms112 ms8.45 s225 ms196 ms15.4 s1.2 ms
CPU time1.20 s1.23 s27.1 s11.6 s477.5 s1.21 s4.44 s916 ms57 ms111 ms8.45 s624 ms196 ms15.8 s990 µs
memory42.6 MB375.8 MB15 MB4211.8 MB181.7 MB59.1 MB42.9 MB28.9 MB47.1 MB20.9 MB27.8 MB17.4 MB18.3 MB146.2 MB3.5 MB
LOC185231132611261603424911204

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

swept/ball-thread-groove.md, the case as written.