swept · ·

A thread stopped short: a bar screwed partway up a rod

swept/square-bar-screwed-partway-up-rod · swept, solid-sweep, screw, helix, prism, stopped, 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 carried along a screw, stopping inside the rod as a lathe's thread stops short of a shoulder.

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 (the face x = 4) 1 inside the rod, and it is 2 wide along the axis.

The screw is about the z axis: the bar turns right-handed about it (from +x toward +y) and rises 6 for every whole turn, rigidly. It runs from a turn of −120° (the bar lowered 2, wholly below the rod) to a turn of +600° (raised 10), where it stops with its middle halfway up the rod. Cut from the rod everything the bar passes through.

The groove is square-bar-screwed-through-rod's up to where the bar stops, and ends there in the bar's own faces.

expectedclosed form
volume1431.585742no closed form: cad-kernel, OCCT and cadrs agree to 3e-11; the mean of their values
area806.9351761no closed form: cad-kernel, OCCT and cadrs agree to 4e-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
outcomepasspass †–pass–pass †–refused–pass–pass–passpassrefused
volume err.1.9e-095.4e-112.6e-109.4e-085.3e-113.5e-108.3e-121.9e-09
area err.3.9e-092.7e-107.1e-102.3e-071.0e-105.5e-119.2e-123.9e-09
time4.99 s1.23 s2.05 s14.5 s3.6 ms198 ms90 ms1.40 s2.84 s1.2 ms
CPU time17.2 s1.23 s3.72 s14.5 s3.4 ms198 ms193 ms1.40 s7.88 s1 ms
memory54.6 MB384.9 MB52.3 MB66.7 MB11.4 MB60.8 MB14.3 MB15.1 MB114.4 MB3.5 MB
LOC21201291371110334

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

swept/square-bar-screwed-partway-up-rod.md, the case as written.