swept · ·

A rod threaded by a short bar whose corners cut

swept/short-bar-screwed-through-rod · swept, solid-sweep, screw, helix, prism, vertex, helicoid, boolean, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, with a thread cut along it by a short bar carried along a screw, so that the bar's corners, and not only its edges, carry the groove's walls.

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

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 −90° (the bar lowered 1.5, wholly below the rod) to a turn of 1350° (raised 22.5, wholly above it). Cut from the rod everything the bar passes through.

The bar's four corners (4, ±1.5, ±1) lie inside the rod. Out to distance √(4² + 1.5²) ≈ 4.272 from the axis the groove's walls are carried by the tip's long edges, as a long bar's are; beyond it, by the edges where the bar's sides y = ±1.5 meet its faces z = ±1. The two meet at the corners' paths.

expectedclosed form
volume1326.86356π5²·20 − (20/6)·2π∫₄⁵ ρ w(ρ) dρ, w(ρ) = 2 + (6/π)·min(acos(4/ρ), asin(1.5/ρ)), the two meeting at ρ* = √(4² + 1.5²); ∫ρ acos(a/ρ) dρ = ρ²acos(a/ρ)/2 − a√(ρ² − a²)/2, ∫ρ asin(a/ρ) dρ = ρ²asin(a/ρ)/2 + a√(ρ² − a²)/2
area882.2909725the rod's side 2π·5·20·(1 − w(5)/6) + the root 2π·4·20·(2/6) + two ends 2(π5² − (2π/6)∫₄⁵ ρ w dρ) + two helicoidal walls 2(20/c)·[F(ρ*² − 4²) − F(0) + F(5² − 1.5²) − F(ρ*² − 1.5²)], F(u) = ½[√(u(u + c²)) + c² ln(√u + √(u + c²))], c = 6/2π

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–passwrongrefused
volume err.1.8e-093.7e-101.8e-103.9e-112.1e-101.0e-131.8e-04
area err.3.3e-097.7e-101.1e-091.8e-111.2e-099.6e-135.8e-04
time6.02 s2.78 s987 ms10.8 s3.7 ms567 ms244 ms3.75 s936 ms1.2 ms
CPU time20.6 s2.78 s1.67 s10.8 s3.5 ms567 ms542 ms3.75 s1.63 s1.1 ms
memory126.1 MB391 MB54.1 MB70.1 MB11.6 MB148.3 MB19.4 MB20.4 MB75.4 MB3.3 MB
LOC21201261541110334

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

swept/short-bar-screwed-through-rod.md, the case as written.