swept · ·

A rod threaded at a lead that grows along it

swept/square-thread-at-a-growing-lead · swept, solid-sweep, general-motion, helix, prism, variable-pitch, boolean, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, threaded by a bar carried along a path whose lead grows as it climbs, as a variable-pitch screw is cut.

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.

When it has turned by θ about the z axis, right-handed (from +x toward +y), it has risen 6s + 0.3s², s = θ/360°, rigidly. θ runs from −90° (risen −1.48125, the bar wholly below the rod) to 1260° (risen 24.675, wholly above it). Cut from the rod everything the bar passes through.

The lead grows from about 6 at the bottom to about 8 at the top: no screw carries the bar, and the groove's section is different at every height.

expectedclosed form
volume1324.478271no closed form: OCCT and cadrs agree to 8e-10; the mean of their values
area808.4376262no closed form: OCCT and cadrs agree to 2e-10; 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
outcomepasspass †–pass–refused–refused–pass–pass–pass †refusedrefused
volume err.5.8e-115.5e-111.9e-077.6e-113.0e-095.2e-12
area err.1.9e-101.0e-102.9e-075.2e-111.4e-102.3e-10
time8.65 s1.84 s1.52 s1.5 ms3.2 ms416 ms247 ms1.70 s154 ms1.2 ms
CPU time26.3 s1.84 s2.25 s1.3 ms3 ms416 ms548 ms1.70 s155 ms970 µs
memory55.7 MB385.5 MB251 MB4.6 MB11.3 MB98.9 MB15.9 MB74.6 MB26.2 MB3.5 MB
LOC55211991331731414

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

swept/square-thread-at-a-growing-lead.md, the case as written.