swept · ·

A square bar carried round on a planet gear

swept/square-on-a-planet-carrier · swept, solid-sweep, planar, general-motion, prism, trochoid, envelope

The solid a square bar fills as it is carried round on a planet, turning about its own center against the carrier as a planet gear does.

The bar is a prism standing from z = 0 to z = 2, its section the square of side 2 centered at (5, 0) with its sides along x and y.

It moves with one parameter t, from 0° to 360°: its center is carried round the circle of radius 5 about the z axis, to (5 cos t, 5 sin t), and the bar turns about its own center by −2t, so that it turns by −3t relative to the carrier. Make the solid of everything the bar passes through.

Its section sweeps a region of the plane bounded by envelopes of its sides and the trochoids its corners trace; the solid is that region carried from z = 0 to z = 2.

expectedclosed form
volume155.3366775no closed form: cad-kernel, next.BREP and cadrs agree to 5e-9; the mean of their values
area282.192712no closed form: cad-kernel, next.BREP and cadrs agree to 4e-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–pass–refused–refused–pass–pass–passrefusedrefused
volume err.1.7e-091.7e-091.7e-093.4e-091.7e-09
area err.1.3e-101.2e-101.3e-102.5e-102.7e-10
time276 ms624 ms1.15 s1.8 ms3.2 ms101 ms92 ms8.44 s48 ms1.1 ms
CPU time532 ms623 ms2.18 s1.6 ms3 ms101 ms225 ms8.44 s48 ms960 µs
memory27.2 MB356.5 MB11.5 MB4.5 MB11.4 MB24.4 MB8.1 MB42.7 MB24.8 MB3.4 MB
LOC1961581371324274

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

swept/square-on-a-planet-carrier.md, the case as written.