Pix2Vector PRO
Knowledge Base / Laser Cutting & CAD

Laser Cutting DXF Preparation: The Definitive Guide to Kerf, Tolerances & Closed Polylines

How to convert bitmap sketches and artwork into mathematically clean, cut-ready AutoCAD DXF vector files for LightBurn, Glowforge, RDWorks, and industrial laser tables.

Introduction: Why Bitmap Traces Ruin Laser Cuts

Laser cutting is an exacting digital manufacturing process where a concentrated beam of coherent light vaporizes, melts, or burns through material along defined vector coordinates. Unlike ink-on-paper printing, where edge imperfections blend away, a laser cutting head faithfully follows every micro-segment, node, and zigzag present in the vector path file.

When makers convert raster bitmaps (PNG, JPG, or phone photos of sketches) using rudimentary autotrace tools, the resulting vector files are often filled with fatal manufacturing defects:

  • Disjointed Micro-Segments: A single smooth contour is split into hundreds of disconnected lines, causing the laser head to rapidly decelerate, stop, pierce, and restart, leaving scorch marks and melted burn dots.
  • Open Hairpins and Gaps: Paths that appear visually closed on screen have microscopic 0.05mm gaps, preventing CAM software (like LightBurn) from recognizing them as closed perimeters for through-cutting.
  • Redundant Overlapping Lines: Double-traced vector contours cause the laser to cut the exact same slot twice, widening the slot, catching material on fire, and destroying dimensional tolerances.

This comprehensive technical guide explains how to prepare clean, closed DXF files using proper AutoCAD Release 12 standards, kerf offsets, and layer assignments.

1. Understanding the AutoCAD DXF Standard: Why Release 12 (AC1009) is Universal

The Drawing Exchange Format (DXF) was originally introduced by Autodesk in 1982. Over four decades, dozens of specification updates have added complex NURBS splines, 3D meshes, dynamic blocks, and associative dimensioning (such as AC1015 for AutoCAD 2000 and AC1027 for AutoCAD 2013).

However, 95% of laser controller firmwares (including Ruida RDC6442, Trocen AWC708C, and GRBL laser controllers) and CAM software (LightBurn, LaserCAD, RDWorks) struggle with modern spline entities. When modern DXF spline formats are imported into laser CAM software, one of three errors occurs:

Spline Rejection

CAM firmware completely ignores SPLINE entities, resulting in missing geometry.

Chordal Faceting

The importer converts curves into coarse polygon chords with visible flat facets.

Coordinate Distortion

NURBS knot weights are misinterpreted, skewing circles into asymmetric ovals.

The Solution: Pix2Vector exclusively generates AutoCAD Release 12 (AC1009) DXF output. R12 uses discrete POLYLINE and VERTEX entities with closed flags. Every laser software on the planet—from a $300 hobby diode laser running LaserGRBL to a $150,000 Trumpf fiber laser—parses R12 DXF files without coordinate drift.

2. Laser Kerf Width and Compensation

The laser beam is not an infinitely thin razor; it is an hourglass-shaped cone of focused photons. The diameter of the beam at the focal point removes material as it cuts. This evaporated channel width is called the kerf.

Typical Laser Kerf Diameters by Machine Type:

  • CO2 Laser (1.5" or 2.0" Focal Lens): 0.12 mm – 0.22 mm (approx. 0.005" – 0.009") in 3mm Birch Plywood or Acrylic.
  • Diode Laser (Direct Beam Spot): 0.08 mm – 0.18 mm depending on power and optical compression lens.
  • Fiber Laser (Metal Cutting): 0.03 mm – 0.08 mm depending on assist gas pressure (Nitrogen vs Oxygen).

If you design a 25.00mm square peg and a 25.00mm square hole without kerf compensation, the laser beam cuts along the centerline of each vector. Because 0.1mm of material is vaporized on each side of the cutline, the hole will measure 25.20mm and the peg will measure 24.80mm. The resulting 0.40mm total gap will make a loose, sloppy joint that falls apart without glue.

How to Apply Kerf Compensation:

  1. Outside Contours: Offset outwards by Kerf / 2 (+0.1mm) so the finished outer part retains full size.
  2. Inside Holes: Offset inwards by Kerf / 2 (-0.1mm) so holes don't cut oversized.
  3. LightBurn Kerf Setting: Instead of modifying your master DXF coordinates, modern CAM software allows you to set "Kerf Offset" directly in the cut layer settings. LightBurn automatically calculates the tangent offset geometry in real time.

3. Standard Color-Coded Layer Conventions

Laser systems execute multiple operational passes: surface engraving (raster scan), vector scoring (light vector marking), and through-cutting (deep full-thickness cut). Organizing your DXF layers by color is the industry standard for automated CAM processing:

Layer Color / Index Operation Typical Speed & Power Settings Execution Order
Red (#FF0000) Through Cut (Perimeter) Low Speed (15 mm/s), High Power (80%) Step 3 (Last)
Blue (#0000FF) Vector Score (Engrave Line) High Speed (150 mm/s), Low Power (15%) Step 2 (Middle)
Black (#000000) Raster Fill Engrave Very High Speed (300 mm/s), Med Power (35%) Step 1 (First)

Pro Tip on Cut Order: Always cut internal cutouts (such as mounting holes or decorative inner slots) BEFORE cutting the outer boundary. If the outer perimeter is cut first, the piece drops slightly into the honeycomb bed, shifting out of focal alignment before inner features can be burned.

4. Step-by-Step: Converting a Raster Logo to Cut-Ready DXF in Pix2Vector

  1. High-Contrast Input: Upload a clean PNG or JPG image of your design. Black artwork on pure white backgrounds yields the tightest curve accuracy.
  2. Select Clipart or Drawing Preset: The Clipart preset applies bilateral filtering to smooth out JPEG compression artifacts while keeping sharp corners razor-crisp.
  3. Verify Curves with Split-Curtain: Use the interactive split slider in Pix2Vector to inspect whether vector curves trace exactly through the anti-aliased pixel boundaries.
  4. Export AutoCAD DXF: Open the Export modal, choose "AutoCAD DXF", and click download. The file is formatted with closed R12 polylines.
  5. Import to LightBurn / Glowforge: Drag the downloaded .dxf directly onto the canvas. Assign your cut layers and send to your machine.

Ready to create clean laser DXF files?

No account required. Instant AutoCAD DXF download with zero broken paths.

Convert Image to DXF Now