swept · ·

A floor cut by a leaning bar's flat end, turned

swept/bar-end-turned-into-a-floor · swept, solid-sweep, turn, prism, cap, cone, boolean, cut

A curved block whose floor is cut by the flat end of a leaning bar turned past 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 drawn in the plane through (10, 0, 0) spanned by u = (cos 20°, 0, −sin 20°) and v = (0, 1, 0): a point (a, b) of that plane is (10, 0, 0) + a u + b v. Its end is the rectangle 3 by 4 there turned 5° in that plane, {(a, b): 0 ≤ a cos 5° + b sin 5° ≤ 3, |b cos 5° − a sin 5°| ≤ 2}, whose side through (10, 0, 0) is the bar's inner side. The bar is that rectangle carried 3 along n = (sin 20°, 0, cos 20°), square to the plane: it leans 20° out from upright, its flat end facing down and toward the z axis.

It 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.

The end touches along the line where it meets the plane through the z axis and its normal, which the turn carries round into the cut's floor, a cone; the inner side touches along a line crossing its rulings; the rim between them carries the contact from the one to the other. The section is turned 5° so that no side faces the axis squarely.

expectedclosed form
volume53.56455345no closed form: cad-kernel, OCCT and cadrs agree to 2e-12; the mean of their values
area131.1212946no closed form: cad-kernel, OCCT and cadrs give the same area to the twelve figures the board publishes

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–refusedwrongrefused
volume err.1.4e-132.5e-113.0e-121.0e-081.2e-112.0e-139.3e-05
area err.1.3e-126.8e-118.8e-123.7e-082.6e-117.9e-131.4e-05
time1.28 s1.41 s325 ms978 ms3.9 ms53 ms11 ms598 ms421 ms1.1 ms
CPU time3.84 s1.41 s486 ms977 ms3.7 ms52 ms22 ms597 ms689 ms950 µs
memory44.1 MB376.6 MB28.8 MB50.6 MB11.7 MB20.5 MB11 MB11.5 MB43.8 MB3.5 MB
LOC382619871411519434

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

swept/bar-end-turned-into-a-floor.md, the case as written.