swept · ·

A thread with a run-out: a bar screwed up a rod, then withdrawn

swept/square-thread-with-a-run-out · swept, solid-sweep, screw, slide, path, pieces, prism, boolean, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, with a thread cut partway up it by a bar that is then withdrawn straight out of its groove, as a lathe's tool runs out of a thread. The tool's path is made of two pieces.

The bar, as placed, is the box 4 ≤ x ≤ 12, −8 ≤ y ≤ 8, −1 ≤ z ≤ 1: it points at the rod's axis, its flat tip 1 inside the rod, and it is 2 wide along the axis.

First it is carried along a screw about the z axis, turning right-handed (from +x toward +y) and rising 6 for every whole turn, rigidly, from a turn of −90° (lowered 1.5, wholly below the rod) to one of +900° (raised 15), where it points along −x, its tip at (−4, 0, 15). Then it slides without turning along −x by 3, straight back along its own length, until its tip is at (−7, 0, 15), clear of the rod. Cut from the rod everything the bar passes through.

The two pieces share the bar where the screw stops and the slide starts. The run-out is the bar's section carried straight out of the groove.

expectedclosed form
volume1364.024214no closed form: cad-kernel, OCCT and cadrs agree to 4e-11; the mean of their values
area822.633577no closed form: cad-kernel, OCCT and cadrs agree to 3e-11; 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 occt's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepass †pass †–pass–refused †–refused–pass–pass–passrefusedrefused
volume err.7.0e-092.2e-102.7e-103.2e-114.8e-101.2e-11
area err.1.6e-081.0e-098.1e-101.7e-112.9e-107.2e-12
time8.45 s1.64 s2.61 s9.98 s3.1 ms329 ms138 ms1.80 s120 ms1.1 ms
CPU time28.6 s1.64 s4.69 s9.98 s2.9 ms329 ms283 ms1.80 s120 ms950 µs
memory93.2 MB385.6 MB61.9 MB66.2 MB11.6 MB82.4 MB18.2 MB17.1 MB25.8 MB3.5 MB
LOC36221671381512424

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

swept/square-thread-with-a-run-out.md, the case as written.