swept · ·

A wheel carried along a spline, cutting with its rim

swept/ring-carried-along-a-spline · swept, solid-sweep, frame, general-motion, spline, torus, boolean, cut

A block, the box from (−6, −6, −8) to (36, 26, 0), with a groove cut into its top by a ring carried along a spline, standing up like a wheel across it.

The curve is the cubic Bézier curve in the plane z = 0 whose control points are (0, 0, 0), (10, 0, 0), (20, 20, 0) and (30, 20, 0), run from its first end to its last.

A frame rides along the curve: at each point its origin is the curve's point, its x axis the curve's tangent there (pointing the way the curve runs), its z axis straight up and its y axis to the left, so that at the curve's start it is the world's own frame. The tool is drawn in that starting frame and carried rigidly by the frame as it runs the whole curve.

The ring, so drawn, is a torus centered at (0, 0, 0.5) whose axis is the y axis direction: the circle through its tube's centers has radius 1.5, and its tube has radius 0.5. So it stands upright across the curve like a wheel, its lowest point 1.5 below the block's top.

Cut from the block everything the ring passes through as the frame runs the whole curve.

The ring is no convex solid: as the curve bends, its inner side comes into contact too.

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
volume10696.510696.510696.5
area3974.443974.443974.44
time2.82 s614 ms2.5 ms1.4 ms3.4 ms8.27 s533 ms47 ms67 ms1.2 ms
CPU time4.64 s614 ms2.3 ms1.2 ms3.2 ms8.26 s1.97 s47 ms68 ms1000 µs
memory29 MB356.6 MB8.6 MB4.5 MB11.3 MB1024.8 MB14.2 MB8.9 MB28.4 MB3.5 MB
LOC3361381231114424

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

swept/ring-carried-along-a-spline.md, the case as written.