meshfx // WELD

How to remove duplicate vertices

You remove duplicate vertices by merging every vertex that sits within a tiny distance of another, a command most 3D editors call Merge by Distance or Weld. Start with a threshold around 0.0001 m, compare the vertex count before and after, and mark sharp edges again so hard corners keep their crisp shading.

pyrofx effects work today, and new accounts start with $5 of usage.

MODULE // meshfx AVAILABLE

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.

  • Two or more vertices at one position
  • Merge by Distance or Weld at a small threshold
  • They show as seams, cracks or broken smooth shading

01 // HOW TO

Weld duplicate vertices by hand

  1. Note the vertex count your 3D editor shows for the model.
  2. Select all vertices in edit mode.
  3. Run Merge by Distance (Weld) with a threshold near 0.0001 m. The editor reports how many vertices it removed.
  4. Inspect thin parts such as eyelids, fingers and layered panels. If the merge joined surfaces that should stay apart, undo, lower the threshold, or weld those areas separately.
  5. Set smoothing again: mark hard edges as sharp or use smooth by angle, so a box keeps crisp corners once its corner vertices are shared.
  6. Run Select Non-Manifold to confirm no cracks remain, then export.

meshfx measures holes, flipped faces and non-manifold edges. Each repair is checked against the source and undone with a warning if it moves the surface too far. Hosted meshfx runs are available in the Playground.

02 // WHY IT MATTERS

Why duplicate vertices cause problems

Two vertices on one spot leave the faces on each side unconnected, so the edge between them counts as open. Smooth shading stops at that line and shows a seam, the surface can split apart when it bends, and tools that need a closed surface treat the line as a hole.

Some splits belong in the exported file. An exporter splits a vertex wherever the UVs or hard-edge normals change, and the engine needs those copies. Weld positions in your 3D editor, where UVs and normals live on the face corners, and the exporter splits them again where it must.

04 // FAQ

Duplicate vertex questions

All questions →

README.REMOVE_DUPLICATE_VERTICES
How do I remove duplicate vertices from a 3D mesh?

Select all vertices and run Merge by Distance or Weld with a threshold near 0.0001 m. Check the count it removed and look over thin parts.

How do I use Merge by Distance without damaging the mesh?

Start with a very small threshold and raise it only if cracks remain. Weld thin areas such as lips and eyelids separately, then reset sharp edges.

Why do duplicate vertices cause shading or export problems?

Faces on either side of a duplicate are not connected, so shading breaks into seams and the mesh counts as open. Decimation and collision tools see holes.

How do I weld overlapping vertices in a game model?

Merge them by distance in your 3D editor before export. Unity also has a Weld Vertices import option that merges vertices matching in every attribute.

How do I remove duplicate or overlapping faces?

Merge vertices first so the copies share the same vertices, then use your editor cleanup for duplicate faces or select one copy and delete it.

Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

All effects, guides and explainers →