swept · ·

A groove that crosses itself: a mill run round a looping spline

swept/bull-nose-along-a-looping-spline · swept, solid-sweep, frame, general-motion, spline, torus, self-intersecting, boolean, cut

A block, the box from (−10, −10, −8) to (30, 25, 0), with a groove cut into its top by a bull-nose mill run along a spline that loops over itself, so that the groove crosses itself.

The curve is the cubic Bézier curve in the plane z = 0 whose control points are (0, 0, 0), (30, 20, 0), (−10, 20, 0) and (20, 0, 0), run from its first end to its last. It crosses itself once, near (9.98, 8.54), and at its sharpest it turns on a radius of about 1.79, tighter than the mill.

The mill is a solid of revolution about an upright axis that rides the curve: a cylinder of radius 2, from 1.5 below the block's top up to 5 above it, whose bottom corner is rounded to radius 0.5 (a flat bottom of radius 1.5 joined to the side by a quarter torus of tube radius 0.5). Its axis starts on the vertical line through the curve's first point and stays upright, its foot on the curve, as it runs the whole curve. Cut from the block everything the mill passes through.

Where the curve crosses itself the groove comes back onto itself: the sheet the mill sweeps passes through its own earlier part. Where it turns tighter than the mill, the groove's inner wall folds and is cut away by the mill itself.

Unsettled. This solid has no closed form, and no two kernels yet agree on it to 1e-8, so it has no answer to grade against. Below is what each kernel builds: built means a watertight, consistently oriented solid, whatever its measures; the table says which kernels agree with which.

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
outcomebuiltrefused–refused–refused–refused–built–built–refusedrefusedrefused
volume109571095710956.9
area4101.944101.944101.82
time1.97 s618 ms3.3 ms1.8 ms3.4 ms4.84 s1.34 s163 ms120 ms1.2 ms
CPU time2.55 s617 ms3.1 ms1.5 ms3.2 ms4.83 s3.42 s163 ms272 ms980 µs
memory20 MB356.6 MB8.6 MB4.6 MB11.6 MB105 MB48.5 MB17.5 MB28.9 MB3.5 MB
LOC7362191271937414

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

swept/bull-nose-along-a-looping-spline.md, the case as written.