Guide · Splines & Gaps

How to fix DXF splines and gaps so your CNC controller accepts the file

I built DXF Studio. The single most common reason a DXF gets rejected by a CNC or laser controller isn't a broken file — it's two specific things the file is made of: splines the controller can't interpret, and gaps between segments that should be closed loops. This page explains why those two problems stop your machine, and how to fix them so the controller accepts the file the first time.

If you'd rather skip the manual work, you can upload the file that's failing and preview a machine-ready result free — you only pay when you choose to download.

Why does my CNC controller reject a DXF file with splines?

Your CNC controller rejects a DXF with splines because most controllers can't interpret spline entities directly — they only reliably understand simple geometry like lines and, sometimes, arcs. A spline is a mathematical curve defined by control points, and when the controller hits one it does one of three things: rejects the file outright, silently drops the spline so part of your geometry vanishes, or approximates it so badly the cut comes out faceted or jerky.

This is why a file that looks perfect in your CAD program fails on the machine. The fix is to convert every spline into a series of straight LINE segments the controller accepts — flattening the curve within a tolerance tight enough that it still looks smooth. DXF Studio does this automatically and shows you the result before you download, so you can confirm the curves held up.

How do I convert a spline to lines or a polyline in a DXF?

You convert a spline to lines by flattening it into connected straight LINE segments, choosing a tolerance that balances smoothness against segment count. Set the tolerance too loose and smooth curves turn into visible facets; set it too tight and you generate thousands of tiny segments that make the controller stutter and slow the cut down. Getting that balance right by hand, spline by spline, is the tedious part most people give up on.

DXF Studio handles the conversion for you: splines and arcs become clean LINE geometry designed for broad compatibility with CNC, laser, plasma, plotter, and waterjet controllers — including older and budget controllers that reject splines entirely. Because the processing is deterministic, you get the same clean result every time, not a different approximation on every export.

Why won't my laser cut a shape that looks closed on screen?

Because it isn't actually closed. What looks like a continuous outline at normal zoom is often several separate segments with tiny gaps between their endpoints. On screen those gaps are invisible; to the machine, the contour is open — so the laser won't treat it as a closed loop, fills won't generate inside it, and cut-order logic breaks because there's no complete path to follow.

The fix is to snap those nearby endpoints together so the open contour becomes a genuine closed loop. DXF Studio detects gaps and repairs them as part of the cleanup pass, then shows you the corrected geometry in the preview so you can confirm the shape is truly closed before you commit anything.

What is an open contour in a DXF and why does it matter?

An open contour is a shape whose path doesn't fully connect end to end — the last point doesn't meet the first, or two segments that should join are separated by a small gap. It matters because almost everything downstream assumes closed loops: hatch and engrave fills need a closed boundary to fill inside, cut sequencing needs complete paths to order, and many controllers treat an open contour as an error or simply refuse to cut it.

Open contours usually come from CAD exports where segments were drawn separately, trimmed slightly short, or left with rounding errors at the joints. DXF Studio finds these gaps and closes them automatically, turning open contours into the closed loops your machine expects.

How do I fix gaps between segments in a DXF file?

You fix gaps by snapping the endpoints of adjacent segments together within a tolerance, so segments that were meant to connect actually do. The challenge is choosing a snap distance large enough to close the real gaps but small enough that it doesn't accidentally merge points that are supposed to stay separate.

DXF Studio does this automatically as part of its cleanup pass — duplicate segments, gaps, and unsupported geometry are all detected and repaired in one step. You preview the repaired file first, so you can verify the gaps closed correctly before spending a token on the download.

Will flattening splines to lines change my part dimensions?

No — a properly flattened spline stays within a tight tolerance of the original curve, so the shape is preserved. Flattening turns a curve the controller can't read into straight segments it can, without moving your actual edges. The shape you drew is the shape you get back.

Cleanup deliberately does not offset your geometry for beam width or tool diameter — that's a separate step in DXF Studio's Hatch & Optimize module, not part of the spline-and-gap cleanup. Cleanup's job is to hand the machine honest, simple geometry and leave your dimensional intent exactly as you drew it.

What's the fastest way to make a rejected DXF work on my controller?

The fastest way to make a rejected DXF work is to run it through a process that flattens splines to LINE geometry, closes open gaps, and removes duplicates in one pass — instead of hunting down each problem by hand in CAD. Doing it manually means selecting splines, setting flatten tolerances, snapping endpoints, and deleting duplicates one at a time, and it's easy to miss the invisible ones.

That's exactly what I built DXF Studio to do. Upload the file that's being rejected, and the preview shows you clean LINE geometry, closed contours, and an optimized toolpath emulation before you spend anything. The output is designed to open cleanly in LightBurn, Fusion 360, SheetCAM, and other CAM software that reads DXF — so you can judge the geometry yourself before you commit a token.

Try it on the file your controller won't accept

Upload your DXF, inspect the flattened splines, closed contours, and optimized toolpath emulation free, and only pay when you choose to download the result you've previewed.

Try a file free → No sign-up required to preview your result.

Still have a file your controller won't accept? Email me directly at [email protected] — it comes straight to me, not a ticket queue. Controller quirks are often fixable with a settings change, and every report you send makes the tool better for everyone.