TexHouse Plain comparisons of 3D printing and maker tools

How to close gaps in traced outlines for DXF files

Close gaps in traced outlines before exporting DXF files, with the checks to run and the tool options to compare.

By TexHouse ยท

TexHouse is published by the makers of LunarWerx 3D Print and VectorMagik, which are compared here alongside other tools.

Closing a gap means finding where a traced outline breaks, moving the ends so the path closes, and checking the result against the original picture before you export a DXF file.

OptionWhat it doesFee
VectorMagikTraces a picture into vector shapes using its own engine, with node editing and DXF export [1] [1] [1]VectorMagik is free for everyone, and business use needs a licence (PolyForm Noncommercial 1.0.0) [1]
Other tools (check each one)Check each tool's own page for DXF export, node editing, a side by side compare with the source, and its priceNot published on this page; check each tool's own page.

What you need before you start

Before you close any gaps, have the original picture open next to the traced outline. The source image shows what the outline should look like, so you can tell a real opening from a line that was traced correctly. Keep a DXF viewer or the editor you plan to use for the final file ready, so you can check the outline in the format the cutting or design software will read.

Know which gaps matter. A small break in a decorative line may not matter, while a break in a cut line will stop a cutter from finishing the shape. Have a place to save each version, because closing gaps usually takes several passes and the earlier file lets you undo a change that made things worse.

If the source picture is blurry, low in contrast or heavily shaded, expect more gaps and plan extra time for checks. Finally, decide what the file is for, such as a laser cut, a vinyl cut or a CAD import, because each one has its own tolerance for small breaks.

Step by step

Work through these steps in order, and save a new file after each pass.

  1. Open the traced DXF and zoom in on each outline. Look at the ends of open paths and at places where one line should meet another.
  2. Compare the outline with the original picture. If you traced with VectorMagik, you can compare the vector with the bitmap side by side, or flip between them with B and V keys. [1] This makes it easier to see which breaks come from the source and which come from the trace.
  3. Reduce the number of colours before tracing if the picture has many close shades. VectorMagik lets you limit the result to between 1 and 64 colours. [1] Fewer regions can mean fewer small openings between them.
  4. Choose a simplify setting that keeps the detail you need. A tolerance slider merges neighbouring curve pieces, and Auto picks the largest tolerance that keeps the picture. [1] Check the result against the source before you move on.
  5. Remove or merge shapes that interrupt the outline. You can click shapes to delete them, such as a background, or merge two shades into one. [1]
  6. Fix open ends by moving the curve nodes at each break. You can move or delete curve nodes and round individual corners after converting. [1] Move each end until it meets the next one, then recheck at high zoom.
  7. Export a fresh DXF and reopen it in the software that will use it. Check every outline you changed, and compare the reopened file with the original picture once more.

Tools that can do it

VectorMagik is made by the team that publishes this site. It traces a picture into vector shapes using its own engine. [1] You can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG, so DXF is one of its export choices. [1] The same engine also runs in the web browser. [1] Downloads exist for Windows x64, macOS (Apple Silicon and Intel) and Linux x64, plus a browser version. [1] It installs with a Windows installer, a portable zip, a macOS zip, a Debian/Ubuntu .deb or a Linux tar.gz, all from GitHub releases. [1] A command-line version does the same work without a window, and it lets an AI assistant trace pictures on your computer. [1] The product is free for everyone, and business use needs a licence under PolyForm Noncommercial 1.0.0. [1]

For each other tool, check the tool's own page: whether it exports DXF, whether it lets you edit curve nodes, whether it can compare the result with the source picture, and what it costs. Those checks show whether a tool fits a gap-closing job.

Common mistakes to avoid

Closing gaps on the DXF without checking the source is a common mistake. A break may come from the picture itself, and an outline that looks closed on screen can still open at high zoom. Compare with the original before you move any node.

Trying to close every tiny break one by one wastes time. A busy picture with many shades can leave more small openings, so reducing the colour count first is worth trying, and retrace if the result is still noisy. [1]

Accepting the Auto simplify setting without a look is another error. Auto picks the largest tolerance that keeps the picture, but the outline you need may still differ from that choice. [1]

Editing the working file and exporting over the only copy is risky. Save each pass as a new file so you can go back if a change opens a new gap.

Skipping the reopen step leaves problems hidden. Export the DXF, open it again in the program that will use it, and check the joins you changed.

Frequently asked questions

How do you close gaps in a traced outline?

Start by zooming in on each break and comparing the traced outline with the original picture. Reduce the number of colours if the source is busy, and merge or delete shapes that interrupt the path. Move or delete the curve nodes at each open end so the outline meets itself, then export a fresh DXF and reopen it to check. Save each pass as a new file so you can compare results.

Can VectorMagik export a traced outline as DXF?

VectorMagik can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG, so DXF is one of its export choices. [1] Check the exported file in the program that will use it, since a DXF that looks right in one viewer can still show an open path in another.

Can VectorMagik compare the trace with the original picture?

VectorMagik can compare the vector with the bitmap side by side, or flip between them with B and V keys. [1] This helps you see whether a break comes from the source picture or from the trace. Use the same check after every change to a node or shape, because a fix in one spot can change the outline nearby. Save a new file after each round so the earlier version is still available.

Is VectorMagik free to use?

VectorMagik is free for everyone, and business use needs a licence. [1] The product is licensed under PolyForm Noncommercial 1.0.0. [1] Read that licence text before you use the output in paid work, so you know what it allows for your project.

Does VectorMagik run in a web browser?

A version runs in the web browser using the same engine as the desktop program. [1] Downloads are also listed for Windows x64, macOS on Apple Silicon and Intel, and Linux x64. [1] The installers come from GitHub releases, including a Windows installer, a macOS zip and a Linux tar.gz. [1]

Free for personal and non-commercial use; business use needs a licence (PolyForm Noncommercial 1.0.0). [1]

Try VectorMagik

Sources

  1. VectorMagik's own description of itself (the product of this site's publisher)

Related comparisons