swept · ·

A sealed helical tunnel: a box screwed inside a rod

swept/box-screwed-inside-a-rod · swept, solid-sweep, screw, helix, prism, void, boolean, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, with a sealed helical tunnel inside it: everything a small box passes through as it is carried along a screw wholly within the rod.

The box, as placed, is 2.5 ≤ x ≤ 3.5, −0.5 ≤ y ≤ 0.5, 2 ≤ z ≤ 3.

The screw is about the z axis: the box turns right-handed about it (from +x toward +y) and rises 4 for every whole turn, rigidly, from a turn of 0° to one of 720°, ending as the box 2.5 ≤ x ≤ 3.5, −0.5 ≤ y ≤ 0.5, 10 ≤ z ≤ 11. Cut from the rod everything the box passes through.

The box stays inside the rod all the way, so the result is the rod with a closed helical cavity two turns long, square in section and ended by the box's own faces: two shells. The box's level faces sweep helicoidal sheets and its upright faces cylinders and ruled sheets, meeting along its edges' helices.

expectedclosed form
volume1522.316219no closed form: cad-kernel and OCCT agree to 4e-11; the mean of their values (cadrs is 1.2e-8 from it)
area961.1374882no closed form: cad-kernel and OCCT agree to 7e-11; the mean of their values (cadrs is 1.2e-8 from it)

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–refused †–refused–pass–pass–passpassrefused
volume err.5.5e-111.6e-111.8e-112.3e-118.2e-112.0e-115.6e-11
area err.8.7e-102.9e-113.5e-114.7e-112.3e-103.6e-118.7e-10
time6.95 s11.4 s655 ms7.01 s3.2 ms5.41 s2.10 s1.67 s5.99 s1.2 ms
CPU time21.9 s11.4 s1.08 s7.01 s3 ms5.41 s5.20 s1.67 s18.4 s1 ms
memory446.6 MB422.5 MB38.6 MB77.6 MB11.4 MB134.7 MB81.5 MB14.5 MB493.7 MB3.4 MB
LOC221113321291010284

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

swept/box-screwed-inside-a-rod.md, the case as written.