swept · ·

A ball on a leaning stem swung partway into a block

swept/ball-on-a-leaning-stem-swung-partway · swept, solid-sweep, turn, sphere, cylinder, concave, stopped, boolean, cut

A curved block with a notch cut into it by a ball on a leaning stem, 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 tool is the union of a ball of radius 0.8 centered at (10, 0, 0) and a stem, a solid cylinder of radius 0.4 whose axis runs from the ball's center 3 along the direction (0, sin 20°, cos 20°), leaning 20° from upright toward +y, its far end flat. The stem stands out through the block's top. Where the stem leaves the ball the tool has a concave seam.

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 tool passes through.

expectedclosed form
volume71.03324856no closed form: cad-kernel and cadrs agree to 2e-11; the mean of their values
area164.1729535no closed form: cad-kernel and cadrs agree to 7e-12; 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 next.BREP's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepassrefused–pass–refused–refused–pass–pass–passpassrefused
volume err.2.1e-112.0e-112.4e-102.1e-115.0e-128.7e-11
area err.1.6e-117.4e-114.8e-111.2e-118.4e-128.8e-11
time2.95 s607 ms178 ms1.8 ms3.4 ms821 ms173 ms774 ms3.24 s1.2 ms
CPU time6.32 s606 ms228 ms1.6 ms3.2 ms820 ms445 ms773 ms6.64 s980 µs
memory23.8 MB356.5 MB27.5 MB4.6 MB11.6 MB336 MB25.9 MB10.4 MB42.4 MB3.3 MB
LOC3361881521216334

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

swept/ball-on-a-leaning-stem-swung-partway.md, the case as written.