swept · ·

A leaning bull-nose mill carried along a spline

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

A block, the box from (−6, −6, −8) to (36, 26, 0), with a groove cut into its top by a leaning bull-nose mill carried along a spline.

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 mill, so drawn, is a solid of revolution about an axis leaning 30° from upright toward +x (the way the curve sets out), along a = (sin 30°, 0, cos 30°), through c = (0, 0, −1), the middle of its flat end, 1 below the block's top. Along its axis it runs from c up to c + 3a: a cylinder of radius 2 whose end corner is rounded to radius 0.5 (its flat end a disc of radius 1.5 about c, its side of radius 2 from c + 0.5a to c + 3a, and between them a quarter of a torus of tube radius 0.5 centered on the circle of radius 1.5 about c + 0.5a).

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

The frame turns the mill as the curve turns, so no screw carries it: the curve along which the mill touches what it sweeps moves on the mill from instant to instant.

expectedclosed form
volume10507.58641no closed form: cad-kernel and cadrs agree to 4e-10; the mean of their values
area3968.625732no closed form: cad-kernel and cadrs agree to 1e-9; 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–refused–refused–refused–pass–pass–passpassrefused
volume err.1.8e-105.2e-112.8e-101.8e-102.0e-10
area err.4.9e-106.3e-105.7e-104.8e-105.3e-10
time30.2 s621 ms2.9 ms1.8 ms3.8 ms663 ms148 ms4.51 s12.6 s1.4 ms
CPU time38.7 s621 ms2.6 ms1.6 ms3.6 ms663 ms456 ms4.50 s17.2 s1.2 ms
memory140.1 MB356.7 MB8.5 MB4.6 MB11.7 MB88.7 MB12.5 MB171.8 MB63.2 MB3.4 MB
LOC8561481282229494

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

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