offset · ·

A plate with a square hole grown by 1

offset/plate-with-a-square-hole-grown · offset, grow, planar, concave-edge, hole, corner, adversarial

A square plate from (0, 0, 0) to (10, 10, 2) with a square hole through it, the square from (3, 3) to (7, 7), its sides parallel to the plate's. Grow it by 1: the solid of every point within 1 of the plate.

Each face moves 1 outward. Each convex edge, the plate's outer edges and the hole's rims on the top and the bottom, becomes a quarter of a cylinder of radius 1 about it, and each outer corner an eighth of a ball. The hole's four walls move 1 into the hole, which is left the square from (4, 4) to (6, 6) through the grown plate's middle. The hole's four vertical edges are concave and stay sharp: the two walls beside each, moved, meet along a vertical line, such as x = 4, y = 4. Where such an edge meets the top or the bottom, the rounds of the two hole rims beside it meet in a sharp concave crease.

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

As a set:

$$\Bigl(\bigl([0,10]^2 \setminus [3,7]^2\bigr)\times[0,2]\Bigr) \oplus B_{1}$$

expectedclosed form
volume533.1032365t(A + Pd + kd²) + 2(Ad + πPd²/4 + 2kd³/3) = (1304 + 94π)/3, A = 10² − 4² = 84, P = 4·10 + 4·4 = 56, t = 2, d = 1, k = π − 4
area449.0619298t(P + 2kd) + 2(A + πPd/2 + 2kd²) = 248 + 64π

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.8.5e-160.0e+000.0e+008.3e-112.1e-168.5e-16
area err.5.1e-166.3e-162.5e-162.9e-103.8e-165.1e-16
time112 ms665 ms1.48 s291 ms33 ms23 ms1.1 ms
CPU time181 ms664 ms1.48 s291 ms51 ms23 ms950 µs
memory15.1 MB369.8 MB59.2 MB35.6 MB10.9 MB9.9 MB3.5 MB
LOC91961010114

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

offset/plate-with-a-square-hole-grown.md, the case as written.