Geometry, Kerf & Tolerance Methodology
Exact mathematical formulas, outward kerf sign conventions, 3D box corner partitioning, packaging bend allowances, and honest workshop limitations.
1. Exact Unit System & Coordinate Frame
All internal geometry in KerfShape executes in double-precision millimeters (mm). Conversions between SI and US customary units use the exact 1959 International Yard and Pound definition:
1 inch (in) = 25.4 mm (exact)
1 mil / thou = 0.001 in = 0.0254 mm
1 caliper point = 0.001 in = 0.0254 mm (paperboard thickness standard)
1 micron (µm) = 0.001 mm
Every SVG uses standard SVG screen coordinates (+X right, +Y down). Outer solid contours are wound clockwise so the outward normal of any directed edge (tx, ty) is strictly (+ty, −tx). Internal cutouts (locking slots, finger-pull holes, tolerance test slots) are emitted as independent closed subpaths strictly inside outer contours.
2. Kerf Sign Convention & Clearance Math
A laser, waterjet, or CNC bit of cutting width k ≥ 0 removes k / 2 from both sides of the cut centerline:
- External contours & protruding tabs: Physical width shrinks by
k. To recover nominal physical widthW, the drawn geometry expands outward by+k / 2per side (W_drawn = W + k). - Internal slots & recessed notches: Physical opening widens by
k. To recover nominal openingS, the drawn walls shift inward toward the void byk / 2per side (S_drawn = S − k). - Mating finger-joint clearance
c: When a desired physical gapc = physicalNotch − physicalFingeris specified (c < 0press fit,c = 0exact line-to-line,c > 0glue/slip fit), KerfShape shifts each mating cheek byo_cheek = k / 2 − c / 4. Verifying the physical gap after laser removal:(W − 2·o_cheek + k) − (W + 2·o_cheek − k) = 2k − 4(k/2 − c/4) = c.
3. 3D Finger-Joint Corner Partition (Zero Corner Gaps)
At each of the eight T × T × T corner cubes of a closed box, exactly one of the three orthogonal panels must occupy the corner volume. KerfShape assigns Front and Back panels to own all eight corner cubes, recesses Left and Right panels at their Front/Back ends, and recesses Top and Bottom panels at all four corners. Along each interior span (W − 2T, D − 2T, H − 2T), an odd segment count guarantees symmetric interlocking with zero overlapping double cuts.
4. Packaging Caliper & Bend Allowances
Folding cartons (RTE/STE) and corrugated mailers use original parametric geometry written from first principles (no unlicensed proprietary CAD templates). Folding carton lids add +1 × caliper depth allowance and 1.6 × caliper dust-flap hinge relief. Corrugated mailers add double-score rollover channels spaced at 1.6 × T so E-, B-, and C-flute boards bend 180° cleanly without cracking outer kraft liners.
5. SVG Export Invariants & Automated Verification
Before shipping any engine change, automated tests validate every exported SVG against four strict invariants:
- Root
<svg>declares explicit physicalwidthandheightinmmorin. - Root
viewBox="0 0 W H"matches numericwidthandheightwithin0.01units. - All through-cuts live in
#layer-cut; folds/scores live in#layer-crease. - Segment-pair geometric intersection checks confirm zero collinear overlapping double-cuts and zero self-crossings.
6. Honest Physical Assumptions & Limitations
- Beam taper: Focused CO2 and diode lasers produce a slight V-shaped kerf wall (typically 1–3° taper on thick 6 mm+ stock). Measure kerf near mid-thickness and test-fit on scrap.
- Stock thickness variance: Plywood and cast acrylic vary across a single sheet. Measure four corners with calipers before setting thickness.
- Wood grain & board flute direction: Folding cartons crease cleanest when main vertical folds run parallel to paperboard grain; corrugated mailer strength depends on flute orientation along load-bearing walls.
- CNC inside corners: Rotating router bits leave an inside corner radius equal to bit radius; square finger notches cut by CNC routers require manual dogbone/T-bone fillets in CAM.