offset · ·

A plus-shaped plate grown by 1

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

A plate shaped like a plus sign: its outline in the xy plane is the polygon through (3, 0), (6, 0), (6, 3), (9, 3), (9, 6), (6, 6), (6, 9), (3, 9), (3, 6), (0, 6), (0, 3) and (3, 3), a square 3 × 3 with an arm 3 × 3 on each of its four sides, 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 four inside corners' edges, the concave vertical edges through (3, 3), (6, 3), (6, 6) and (3, 6), stay sharp: the two faces beside each, moved out, meet along a vertical line 1 out from both, such as x = 7, y = 2 beside the edge through (6, 3). 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 eight convex corners rounded to radius 1 and its four inside corners sharp, of area A + Pd + kd², where A = 45 and P = 36 are the outline's area and perimeter and k = 8·(π/4) − 4·1 counts a quarter disc's worth at each convex corner and takes off the square 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((3,0),(6,0),(6,3),(9,3),(9,6),(6,6),(6,9),(3,9),(3,6),(0,6),(0,3),(3,3)\bigr)\times[0,2]\Bigr) \oplus B_{1}$$

expectedclosed form
volume316.1592855t(A + Pd + kd²) + 2(Ad + πPd²/4 + 2kd³/3) = (716 + 74π)/3, A = 45, P = 36, t = 2, d = 1, k = 2π − 4
area293.362818t(P + 2kd) + 2(A + πPd/2 + 2kd²) = 130 + 52π

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.1.4e-151.8e-167.2e-166.2e-137.2e-169.0e-16
area err.7.8e-169.7e-169.7e-168.1e-137.8e-165.8e-16
time209 ms660 ms2.44 s664 ms18 ms24 ms1.1 ms
CPU time324 ms659 ms2.43 s664 ms30 ms23 ms930 µs
memory17.4 MB370.7 MB63.7 MB47.7 MB10.7 MB10.4 MB3.5 MB
LOC1016211312114

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

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