swept · ·

A curved block cut by a bar's side facing the axis squarely

swept/bar-turned-facing-the-axis · swept, solid-sweep, turn, prism, ruling, cone, boolean, cut

A curved block, cut by the inner side of a bar turned past it about the block's own axis.

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 a box leaning out from upright in the plane y = 0. Its inner side is the plane through (10, 0, 0) square to the direction (cos 20°, 0, −sin 20°), so it faces the z axis squarely and leans out 20° from upright: at height z it stands 10 + z·tan 20° from the axis. The bar is everything from that plane to 3 beyond it along (cos 20°, 0, −sin 20°), within 2 of the plane y = 0, and within 3 of the plane through (10, 0, 0) square to (sin 20°, 0, cos 20°) (its length runs along that direction). So it stands past the block above and below, and its outer side lies beyond the block's outer wall.

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

Every line of the inner side that runs along the bar's length is in contact all along it or not at all; the one in the plane through the axis cuts the block's new wall, a cone. What is left of the block is the part of it within 10 + z·tan 20° of the axis.

expectedclosed form
volume37.74535411(π/6)∫((10 + z tan 20°)² − 8²) dz over |z| ≤ 1 = (π/6)(72 + (2/3)tan²20°)
area84.88108661top (π/6)((10 + t)² − 64) + bottom (π/6)((10 − t)² − 64) + inner wall 8·(π/3)·2 + the cone's sixth π·20·(2/cos 20°)/6 + two trapezoids 2·4, t = tan 20°

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–pass †wrongrefused
volume err.9.4e-161.2e-132.6e-151.7e-151.1e-150.0e+001.9e-157.2e-06
area err.3.3e-161.5e-131.7e-158.4e-168.4e-161.7e-162.8e-153.6e-06
time242 ms846 ms113 ms41 ms3.7 ms16 ms10 ms4.8 ms246 ms1.3 ms
CPU time443 ms845 ms154 ms41 ms3.4 ms15 ms16 ms4.6 ms508 ms1 ms
memory28.4 MB372 MB26.4 MB46.8 MB11.4 MB17.9 MB10.6 MB8.7 MB44.1 MB3.4 MB
LOC33181581211115404

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

swept/bar-turned-facing-the-axis.md, the case as written.