Most browser-based gear generators output SVG files stuffed with cubic Bezier splines or non-standard DXF entities. When a machinist or fabricator loads those files into SheetCam, Langmuir FireControl, VCarve Pro, or LightBurn, two problems happen immediately: the controller drops open spline segments, and uncompensated laser/plasma kerf leaves the cut teeth undersized with excessive backlash.
While building the free involute spur gear generator at CutPath CAD ( https://www.cutpathcad.com/involute-gear-dxf ), we engineered a zero-dependency TypeScript geometry kernel that solves both problems directly in the browser.
1. Exact Parametric Involute Tooth Synthesis
Rather than approximating gear teeth with circular arcs, every tooth flank is sampled directly from the exact parametric involute of the base circle:
const baseRadius = pitchRadius * Math.cos(alphaRad); const invAlpha = Math.tan(alphaRad) - alphaRad; const halfToothAngle = Math.PI / (2 * teeth) + (2 * profileShift * Math.tan(alphaRad)) / teeth; For each parameter angle t from the base circle out to the tip radius (ra = rp + m * (1 + x)), the involute polar coordinates are:
const r = baseRadius * Math.sqrt(1 + t * t); const theta = t - Math.atan(t); When the root circle lies below the base circle (rf < rb), the flank connects cleanly through a radial transition into a smooth root-circle arc without self-intersecting loops.
2. True K/2 Kerf Compensation & Backlash Allowance
A laser beam (0.15 mm kerf) or plasma arc (1.40 mm kerf) removes half its kerf width (K / 2) from both sides of every cut line. Without compensation, every gear tooth loses K millimeters of circular thickness while shaft bores grow oversize by +K.
Our kernel builds kerf compensation directly into the tooth synthesis and interior cutout geometry:
- Tooth circular thickness: widened by
+Kand narrowed by-backlashat the pitch circle so real-world laser-cut plywood or Delrin gears mesh smoothly off the bed. - Shaft bores, DIN 6885 keyways & 608ZZ bearing seats: inset by
-K / 2so a 22.00 mm 608ZZ bearing or 5.00 mm NEMA 17 D-shaft achieves a true mechanical fit after cutting. - Exact meshing alignment: For gear pairs
(z1, z2), the driven gear is placed at center distanceC = m * (z1 + z2) / 2and rotated by an exact phase angleMath.PI + Math.PI / z2so tooth valleys align at the pitch point att = 0.
3. Strict AutoCAD R12 (AC1009) Export with Zero SPLINEs
Every contour—the outer tooth perimeter, DIN/ANSI keyway bore, NEMA D-shaft, hex bore, and curved radial spoke windows—is serialized as a closed AutoCAD R12 POLYLINE (flag = 1, VERTEX sequence, SEQEND) or exact CIRCLE entity on distinct CUT, PITCH_REF, and CENTERLINES layers. Every preset passes our automated contour verifier with 0 open paths, 0 duplicate overlapping segments, 0 SPLINE entities, and a 100/100 CAM readiness score.
Try It & Chain It Into Your Shop Workflow
- Generate custom Metric Module or Imperial DP spur gears free: https://www.cutpathcad.com/involute-gear-dxf
- Dial in your exact beam width first with the Kerf Test Card Generator: https://www.cutpathcad.com/kerf-test-dxf
- Batch-nest full gear trains onto 4x8 plywood or 5x10 plate: https://www.cutpathcad.com/sheet-nesting