Open Contours in DXF Files: Find and Fix
Updated 2026-10-09
A contour is a chain of lines and arcs that should form one closed shape: the outer profile of a part, or a hole inside it. It is open when the chain doesn’t meet itself. The end of the last segment doesn’t land on the start of the first, or one segment in the middle is missing. To the eye the drawing may look perfect. To a CAM system or a quoting engine, an open contour is ambiguous. It can’t tell what is inside and what is outside, where to pierce, or which side to offset for kerf.
Why open contours cause trouble
- Cutting: CAM software may refuse the shape, cut it as a line without a lead-in, or apply kerf compensation to the wrong side, leaving the part slightly over- or undersized.
- Pierce count: pierces are usually counted as one per closed loop. An open chain can be counted as zero pierces, or as one per fragment, so the quote is wrong in either direction.
- Area and material: an open outer profile has no defined area, so net area and part weight can’t be trusted.
- Holes: an open hole may not be recognized as a hole, so it isn’t subtracted from the part area.
Tiny gaps vs genuinely open paths
Most open contours come from tiny gaps: endpoints a few thousandths of a millimeter apart, left by rounding during export or by snapping that missed. These are safe to close automatically within a small tolerance, because closing them doesn’t change the part.
A genuinely open path is different. A missing segment, an arc that stops short, or a line that was never meant to be closed, such as an engraving stroke or a bend line on the wrong layer. Closing those automatically would change the geometry, so they need a human decision. A good rule: close gaps much smaller than your machine’s kerf without asking, and flag anything larger for review.
How to find them
- Join test: select all cut geometry and run your CAD program’s join or polyline-join command. Anything that stays as separate pieces is a candidate.
- Area or hatch test: try to measure the area of a profile or fill it with a hatch. Most programs refuse to do either for an open shape.
- Zoom on corners: gaps hide at corners and where arcs meet lines. Zoom far in on endpoints the join didn’t connect.
- Check for overlaps too: duplicate or overlapping segments often appear at the same spots and confuse joins. Delete duplicates first, then join.
How to fix them
- For tiny gaps, use the join command with a small fuzz or tolerance distance. Most CAD programs offer one.
- For real gaps, extend or trim the neighboring segments until they meet, or draw the missing segment.
- For splines that won’t close, convert them to a polyline or to arcs, then join.
- For lines that were never meant to be cut (bend lines, etching), move them to their own layer instead of closing them.
After fixing, run the join test again. Every outer profile and hole should now be a single closed object.
How Kerfrate plans to handle them
The planned engine snaps endpoints within a small tolerance, removes duplicate and overlapping segments, and only then chains contours. Open chains that remain are shown in red on the customer’s preview rather than priced silently. You decide in your settings whether open paths count as pierces. If a file can’t be priced safely, the customer is offered a manual-quote option and you still get the lead. See how it will work, or send customers the DXF checklist so the problem doesn’t arise.