TexHouse Plain comparisons of 3D printing and maker tools

How to clean up traced geometry for CAD hobbyists

A step-by-step guide to cleaning up traced geometry for CAD hobbyists, covering the files to prepare, the checks to run and the mistakes to avoid.

By TexHouse ยท

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

Cleaning up traced geometry means setting the scale against a measured reference, removing stray shapes and duplicate lines, closing open outlines, and exporting a file your CAD program can open. Check the dimensions again after each step that moves points.

OptionWhat it doesFee
VectorMagikCan save the result as DXF among other formats [1]Free for everyone; business use needs a licence [1]
Other tracing and CAD tools (check each)Check each tool's own documentation for DXF export, node editing and simplificationCheck the tool's own page

What you need before you start

Before you clean up a traced shape, have the original picture and one measured reference from the real object. Measure a feature with calipers, such as a hole diameter or an overall width, so you can check the traced drawing against a known size. Keep the picture at the resolution it was taken or scanned at, because a low-resolution picture produces wobbly edges that take longer to fix than a clean trace would.

Have your CAD program open and know which units it uses, millimetres or inches, because a units mismatch is a frequent cause of parts arriving at the wrong size. Decide which lines are construction lines and which are real part edges, since tracing captures both. Finally, keep a separate file for each stage, so the raw trace, the cleaned version and the exported file stay apart and you can return to an earlier stage if a cleanup step goes wrong.

Step by step

  1. Set the scale first. Measure the feature you measured on the real object, and scale the traced drawing so that feature matches. Then check a second dimension to confirm the scale is right.
  1. Remove what you do not need. Delete background shapes, paper texture, shadows and stray specks, so only the part outline and the features you want remain.
  1. Merge duplicate and overlapping lines. Where two traced lines run along the same edge, keep one.
  1. Close open paths. A gap in an outline stops a CAD program from filling it as a solid, so join the endpoints.
  1. Simplify the curves. Reduce the number of points along long smooth edges, but stop before the shape moves away from the original.
  1. Fix the corners and nodes. Move stray nodes onto the edge they belong to, and round or sharpen corners only where the real part has them.
  1. Check the dimensions again. Measure the same features you measured in step 1 and confirm they still match within the tolerance your part needs.
  1. Export and test the file. Save the cleaned result in a format your CAD program reads, import it, and confirm the units and size before you use it for a real part.

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. [1]

For cleanup, a tolerance slider merges neighbouring curve pieces, and Auto picks the largest tolerance that keeps the picture. [1] After converting, you can move or delete curve nodes and round individual corners. [1] You can click shapes to delete them, such as a background, or merge two shades into one. [1] You can also limit the result to between 1 and 64 colours. [1]

To check the trace against the original, you can compare the vector with the bitmap side by side, or flip between them with B and V keys. [1] Downloads exist for Windows x64, macOS (Apple Silicon and Intel) and Linux x64, plus a browser version. [1] A version runs in the web browser using the same engine. [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]

VectorMagik is free for everyone, and business use needs a licence. [1] It is licensed under PolyForm Noncommercial 1.0.0. [1] If you plan to use the traced parts in paid work, check whether that counts as business use before you start.

Other tracing and CAD tools can do parts of this job too. This page does not describe them, so check each tool's own documentation for DXF export, node editing and fees before you choose.

Common mistakes to avoid

Skipping the scale check is the mistake that causes the most rework. A trace that is slightly too large looks fine on screen, and the error only shows when a real part fails to fit. Measure first and scale second.

Leaving stray nodes and specks in place makes later steps harder. Each one adds a point the CAD program has to handle, and it can create a tiny edge that breaks a fillet or an offset. Remove them before you simplify anything.

Simplifying too far is another common error. Merging too many points can move a curve away from the real edge, so compare the result with the original after every simplification pass.

Exporting without checking the units wastes a round of work. Import the test file, confirm the size against your reference measurement, and only then build the real part from it.

Frequently asked questions

How do you check traced geometry against a known size in CAD?

Measure a known dimension on the traced drawing, such as a hole or the overall width, and compare it with the same feature on the real part measured with calipers. If the two differ, scale the drawing until they match before doing any other cleanup. Doing this first keeps every later measurement honest, and it is the quickest way to catch a trace that came out too large or too small. Check the scale again after any cleanup step that moves points.

Can VectorMagik export traced shapes as DXF?

VectorMagik can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG. [1] Once the traced shapes look right, choose DXF for a file that CAD programs read. Before you import it, check the units and confirm the scale against your reference measurement, because a units mismatch is the most common reason a traced part comes out the wrong size.

How does VectorMagik simplify traced curves?

A tolerance slider merges neighbouring curve pieces, and Auto picks the largest tolerance that keeps the picture. [1] After converting, you can move or delete curve nodes and round individual corners. [1] Check the dimensions again after simplifying, because merging pieces can move an edge slightly away from the real part.

How do you remove unwanted shapes in VectorMagik?

You can click shapes to delete them, such as a background, or merge two shades into one. [1] Removing the background first keeps paper tone and shadows out of the outline you want to use. To check the cleaned result, compare the vector with the bitmap side by side, or flip between them with B and V keys. [1]

Is VectorMagik free for CAD hobbyists?

VectorMagik is free for everyone, and business use needs a licence. [1] It is licensed under PolyForm Noncommercial 1.0.0. [1] Check which kind of use applies to your project before you rely on the traced parts for paid work, since that decides whether a licence is needed.

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