offset · ·

An L-shaped plate grown by 1

offset/l-block-grown · offset, grow, planar, concave-edge, corner

The L-shaped plate whose outline in the xy plane is the polygon through (0, 0), (20, 0), (20, 5), (5, 5), (5, 15) and (0, 15), extruded 8 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 inside corner's edge, the concave one along (5, 5), stays sharp: the two faces beside it, moved out, meet along the line x = 6, y = 6. Where that edge meets the top and bottom faces, the rounds of the 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 = 8 is the outline grown by 1 (its sides moved out 1, its five convex corners rounded to radius 1, its inside corner sharp), of area A + Pd + kd², where A and P are the outline's area and perimeter.

As a set:

$$\bigl(\operatorname{poly}\bigl((0,0),(20,0),(20,5),(5,5),(5,15),(0,15)\bigr)\times[0,8]\bigr) \oplus B_{1}$$

expectedclosed form
volume2197.274324t(A + Pd + kd²) + 2(Ad + πPd²/4 + 2kd³/3), A = 150, P = 70, t = 8, d = 1, k = 5π/4 − 1
area1138.451302t(P + 2kd) + 2(A + πPd/2 + 2kd²)

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
outcomepasspassrefusedpass–passwrong †pass–passrefusedpass–passpass ✦refused
volume err.0.0e+002.1e-160.0e+000.0e+002.1e-162.1e-160.0e+002.1e-160.0e+00
area err.1.2e-151.2e-151.0e-154.0e-168.0e-161.6e-158.0e-168.0e-161.2e-15
time100 ms647 ms1.1 ms4.4 ms1.30 s13 ms32 ms93 ms250 ms12 ms9 ms63 ms1.1 ms
CPU time166 ms646 ms970 µs4.2 ms1.30 s13 ms62 ms92 ms250 ms16 ms8.8 ms83 ms960 µs
memory14.4 MB370 MB3.6 MB9.4 MB57.5 MB8.1 MB23.9 MB28.7 MB19.5 MB9.7 MB9.7 MB30.7 MB3.5 MB
LOC6155781861238105224

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

offset/l-block-grown.md, the case as written.