Open-Source CAD Specification · MIT ES Module

DXF Laser Quote Math: LWPOLYLINE Bulge Arcs, OCS Transforms & 2-Core Pierce Counting

Zero-dependency JavaScript equations and interactive verifier for 2D sheet-metal DXF arc integration, AutoCAD group-code 210/220/230 Arbitrary Axis normalization, duplicate segment pruning, and cent-exact laser job-shop quoting.

1. Interactive DXF Bulge Arc & Cycle-Time Verifier

Test Autodesk DXF group-code 42 bulge (b = tan(θ/4)) arc vs. straight chord error alongside fiber/CO2 pierce + traverse cycle costing:

Computing...

2. Governing DXF Geometry & Quoting Equations

Group-Code 42 Bulge Integration

theta_rad  = 4 * Math.atan(Math.abs(bulge))
radius_mm  = (chord * (1 + bulge * bulge)) / (4 * Math.abs(bulge))
arc_len_mm = radius_mm * theta_rad
center_xy  = midpoint + ((1 - bulge * bulge) / (4 * bulge)) * [-dy, dx]

AutoCAD 1/64 Arbitrary Axis Algorithm (OCS 210/220/230 → WCS)

Ax = (Math.abs(Nx) < 1/64 && Math.abs(Ny) < 1/64)
  ? normalize(cross([0, 1, 0], N))
  : normalize(cross([0, 0, 1], N));
Ay = normalize(cross(N, Ax));
P_wcs = x * Ax + y * Ay + z * N;
Sheet Material & Thickness Laser Source Feed Speed Pierce Dwell
Mild Steel 1.5 mm (16 ga)3 kW Fiber (N2 / Air)6,800 mm/min0.25 s
Mild Steel 3.0 mm (11 ga)3 kW Fiber (O2 / N2)3,400 mm/min0.55 s
Mild Steel 6.0 mm (1/4 in)3–6 kW Fiber (O2)1,650 mm/min1.20 s
304 Stainless 2.0 mm (14 ga)3 kW Fiber (High-PSI N2)4,600 mm/min0.40 s
5052 Aluminum 3.0 mm3–6 kW Fiber (N2)3,800 mm/min0.50 s
Cast Acrylic 3.0 mm (1/8 in)130 W CO21,500 mm/min0.20 s

3. Production Browser Workbench

Need to inspect real 2D .dxf and .svg drawings locally in your browser without uploading customer CAD files to a cloud vendor?