BeamReady

Duplicate lines in a DXF: why your laser cuts twice

Published

The edge is darker than it should be, the kerf is wider in places, or the job takes longer than the preview suggested. The laser is cutting some lines twice, because the file contains them twice.

Short answer: two identical lines are stacked on top of each other, so the laser passes twice. In LightBurn, Edit → Delete Duplicates removes them; better, avoid them at the source (shape with both fill and outline, copies pasted in place, overlapping exports).

What a double cut does

  • Darker, burnt edges and a wider kerf on the doubled lines only, so parts do not fit the same everywhere.
  • More heat in the same place: on thin wood, paper or acrylic, a higher risk of flare-ups.
  • Longer jobs than the design needs.

You rarely see it on screen: two identical lines look exactly like one.

Where duplicates come from

CauseWhat happens
A shape with a fill and an outlineSome exports write the fill boundary and the outline as two separate lines
Copy and paste in placeCommon when building a design from pieces, or duplicating to change a colour
Two shapes sharing an edgeTwo parts placed side by side: their common edge is cut twice
Files assembled from several sourcesThe same element imported twice, on two layers

Find them

  • LightBurn: note the object count shown at the bottom of the window, run Edit → Delete Duplicates, and compare. A lower count means there were duplicates.
  • Preview: Window → Preview with traversal moves shown: a line traced twice in a row is a duplicate.
  • xTool Studio: move a few shapes and look for an identical copy left underneath.

Fix them

  • In LightBurn: Edit → Delete Duplicates. Check the result in the preview: lines that are almost but not exactly identical (shifted by a few hundredths of a millimetre) may be left in place.
  • In the design software: give shapes either a fill or an outline for cutting, not both; select overlapping copies and delete one; for parts sharing an edge, keep the shared edge once (Inkscape Path → Union, Illustrator Pathfinder → Unite), or offset the parts slightly.

Our converter removes duplicates when it converts: two lines count as duplicates when every point of one is within 0.05 mm of the other, whatever their start point, direction or number of points. In our tests on real files, LightBurn's Delete Duplicates found nothing left to remove afterwards.

Convert an SVG to DXF

Questions

Why does my laser cut the same line twice?

The file contains two identical lines on top of each other, usually a filled shape plus its outline, or a copy pasted in place. Each one is a separate cut.

How do I remove duplicate lines in LightBurn?

Select everything and use Edit, Delete Duplicates. Compare the object count before and after: if it drops, the file had duplicates.

Are duplicate lines dangerous?

They burn the edge twice: darker edges, a wider kerf, and on thin or flammable material a higher risk of flare-ups. They also waste machine time.

Related problems