offset · ·

A U-shaped plate grown by 1

offset/u-shaped-plate-grown · offset, grow, planar, concave-edge, slot, corner, adversarial

A U-shaped plate: its outline in the xy plane is the polygon through (0, 0), (9, 0), (9, 9), (6, 9), (6, 3), (3, 3), (3, 9) and (0, 9), a square 9 × 9 with a slot 3 wide cut 6 deep into it from the side y = 9, extruded 2 along +z. Grow it by 1: the solid of every point within 1 of the plate.

Each face moves 1 outward. Each convex edge becomes a quarter of a cylinder of radius 1 about it, and each corner where three convex edges meet an eighth of a ball. The slot's walls move 1 into it, leaving it 1 wide, from x = 4 to x = 5, and its floor moves up to y = 4. The slot's two inside corners, the concave vertical edges through (3, 3) and (6, 3), stay sharp: the faces beside each, moved, meet along the vertical lines x = 4, y = 4 and x = 5, y = 4. Where such an edge meets the top or the bottom face, the rounds of the two top or bottom edges beside it meet in a sharp concave crease.

The grown plate's section at any height from z = 0 to z = 2 is the outline grown by 1: its sides moved out 1, its six convex corners rounded to radius 1 and its two inside corners sharp, of area A + Pd + kd², where A = 63 and P = 48 are the outline's area and perimeter and k = 6·(π/4) − 2·1 counts a quarter disc's worth at each convex corner and takes off the square that the two sides beside an inside corner both cover. Above the top, at height u (0 ≤ u ≤ 1), the section is the outline grown by √(1 − u²) in the same way, and likewise below the bottom.

As a set:

$$\Bigl(\operatorname{poly}\bigl((0,0),(9,0),(9,9),(6,9),(6,3),(3,3),(3,9),(0,9)\bigr)\times[0,2]\Bigr) \oplus B_{1}$$

expectedclosed form
volume432.4395203t(A + Pd + kd²) + 2(Ad + πPd²/4 + 2kd³/3) = 1024/3 + 29π, A = 63, P = 48, t = 2, d = 1, k = 3π/2 − 2
area394.4955592t(P + 2kd) + 2(A + πPd/2 + 2kd²) = 206 + 60π

Drawing

Top view
Top
Isometric view
Isometric
Front view
Front
Right view
Right

Third-angle projection, the three views at one scale. Drawn from occt's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepasspass–––pass–––pass–pass–pass–refused
volume err.5.3e-165.3e-160.0e+006.6e-166.6e-169.2e-16
area err.2.9e-161.3e-154.3e-167.2e-165.8e-164.3e-16
time157 ms644 ms1.65 s190 ms20 ms21 ms1.3 ms
CPU time235 ms643 ms1.65 s189 ms30 ms20 ms1.1 ms
memory16.7 MB370 MB58.8 MB32.1 MB9.9 MB9.8 MB3.5 MB
LOC91561211104

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

offset/u-shaped-plate-grown.md, the case as written.