swept · ·

A rod threaded by a bar whose section is a spline

swept/spline-bar-screwed-through-rod · swept, solid-sweep, screw, helix, bspline, prism, free-form, boolean, cut

A rod, the cylinder of radius 5 about the z axis from z = 0 to z = 20, threaded by a bar whose section is a closed B-spline curve, carried along a screw.

The bar's section lies in the plane y = 0: it is the closed, uniform, periodic cubic B-spline curve (non-rational, knots evenly spaced, each span the cubic blend of four consecutive control points) whose seven control points, in (x, z) and in order round the loop, are (3.5, 0), (4.5, −1.5), (8, −1.5), (12, −1), (12, 1), (8, 1.5) and (4.5, 1.5). Its point nearest the rod's axis is (23/6, 0, 0), about 1.17 inside the rod. The bar is everything within that curve carried from y = −8 to y = 8: a prism, its sides one surface of extrusion of the spline.

The screw is about the z axis: the tool turns right-handed about it (from +x toward +y) and rises 6 for every whole turn, rigidly. It runs from a turn of −90° (lowered 1.5, the tool wholly below the rod) to a turn of 1350° (raised 22.5, wholly above it). Cut from the rod everything the bar passes through.

Its contact under the screw has no closed form on a spline: it must be found on the surface numerically, at each ruling.

expectedclosed form
volume1335.319592no closed form: cad-kernel, next.BREP and cadrs agree to 1e-9; the mean of their values
area810.5682318no closed form: cad-kernel, next.BREP and cadrs agree to 3e-10; 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–pass †pass †refused
volume err.7.5e-094.5e-101.1e-094.6e-105.1e-09
area err.8.1e-091.1e-104.7e-107.0e-115.8e-09
time2.52 s622 ms37 ms1.4 ms3.2 ms351 ms443 ms2.97 s51.6 s1.3 ms
CPU time6.00 s621 ms37 ms1.2 ms3.1 ms351 ms1.09 s2.97 s142.8 s1.1 ms
memory63.6 MB356.7 MB10.1 MB4.7 MB11.6 MB17.8 MB32.7 MB126.8 MB103.6 MB3.5 MB
LOC3552281411435734

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

swept/spline-bar-screwed-through-rod.md, the case as written.