swept · ·

A small bar swung partway into a curved block

swept/bar-swung-partway-into-ring-sector · swept, solid-sweep, turn, prism, stopped, boolean, cut

A curved block with a notch cut into it by a small bar swung partway into it.

The block is a sector of a ring about the z axis: everything with distance from the z axis between 8 and 12, with z between −1 and 1, and with polar angle between 0° and 60° (measured from +x toward +y).

The bar is the box 10 ≤ x ≤ 11, −0.5 ≤ y ≤ 0.5, −0.6 ≤ z ≤ 0.6.

It turns rigidly about the z axis, right-handed (from +x toward +y), from −140° to +30°: it starts clear of the block and stops halfway across it. Cut from the block everything the bar passes through.

The notch's far wall is the cylinder of radius √(11² + 0.5²) that the bar's outer corners sweep, its near wall the cylinder of radius 10 its inner face sweeps, and it ends in the bar's own faces where it stops.

expectedclosed form
volume76.4953761380π/3 − 1.2∫ρ(a(ρ) + π/6) dρ from 10 to √(11² + 0.5²), a(ρ) = asin(min(0.5, √(ρ² − 10²))/ρ) the bar's farthest angle from its middle plane at ρ; ∫ρ acos(a/ρ) and ∫ρ asin(a/ρ) in closed form
area168.186155240π + 16 − 1.2(√121.25 − 10) (the opening at 0°) + floor and roof 2∫ρ(a + π/6) dρ + the walls 1.2(10π/6 + √121.25·(π/6 + asin(0.5/√121.25)) + 0.5 + 1), the last two the leading halves of the bar's inner face and its leading face

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–passpasspass †
volume err.1.9e-165.3e-140.0e+001.9e-169.4e-140.0e+005.6e-160.0e+007.6e-12
area err.1.7e-163.2e-148.4e-165.1e-162.0e-133.4e-161.7e-163.4e-161.3e-12
time96 ms658 ms53 ms69 ms632 ms31 ms20 ms52 ms136 ms14 ms
CPU time189 ms657 ms62 ms69 ms804 ms31 ms41 ms52 ms251 ms14 ms
memory20.5 MB369 MB12.8 MB49.7 MB28.8 MB27.3 MB13.1 MB9 MB36.6 MB5.2 MB
LOC24101316164010103314

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

swept/bar-swung-partway-into-ring-sector.md, the case as written.