---
title: "How to weld the vertices of an STL file"
description: "STL stores three corners per triangle and shares none, so each position repeats about six times. Weld with Merge by Distance before any repair."
canonical: https://appliedmanifold.com/mesh/remove-duplicate-vertices-stl/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  STL duplicate vertices

meshfx // STL WELD

# How to remove duplicate vertices from an STL file

You remove duplicate vertices from an STL by welding it with Merge by Distance in your 3D editor right after import. STL stores every triangle with its own three corners, so a closed model arrives with each position repeated about six times and no connected edges. Welding joins it into one surface you can shade smoothly and repair.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx docs →](https://appliedmanifold.com/docs/mesh/)

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](https://appliedmanifold.com/playground/).

-   STL: three corners per triangle, none shared
-   Each position repeats about six times
-   Weld before any repair or smoothing

01 // WHY

## Why every STL starts unwelded

STL has no vertex list. Each triangle record holds a facet normal and three full corner positions, so a cube's 8 corners appear 36 times in the file. Until you weld, every edge is open, smooth shading has nothing to average, and a non-manifold check selects the whole model.

Some importers weld on load and others leave the triangles loose, which shows as flat, faceted shading.

02 // HOW TO

## Weld an STL after import

1.  Import the STL into your 3D editor. If the importer offers to merge vertices, leave it on.
2.  Select all and run Merge by Distance with a threshold of about 0.001 in the file's unit, which is millimeters in most STL files.
3.  Check that the vertex count dropped to about a sixth.
4.  Run Select Non-Manifold to find real holes left after welding.
5.  Use smooth by angle so flat faces keep crisp edges.
6.  Export STL again for printing, or GLB or FBX for a game engine, which keep the shared vertices.

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.

03 // RELATED

## Related pages

-   [Duplicate vertices AvailableWeld duplicate vertices with Merge by Distance at a small threshold, then restore sharp edges so shading stays crisp.](https://appliedmanifold.com/mesh/remove-duplicate-vertices/)
-   [STL normals AvailableWeld the loose STL triangles, recalculate normals outside and export so facet normals and vertex order agree again.](https://appliedmanifold.com/mesh/fix-flipped-normals-stl/)
-   [STL scale AvailableSTL numbers are millimeters by convention, so import at 0.001, apply the scale and export GLB or FBX for a game engine.](https://appliedmanifold.com/mesh/fix-model-scale-stl/)
-   [Non-manifold edges AvailableFind non-manifold edges, merge duplicates, delete interior faces and fill holes by hand in any 3D editor before export.](https://appliedmanifold.com/mesh/fix-non-manifold-edges/)
-   [OBJ duplicate vertices AvailableOBJ needs only one v line per position, so merge by distance in your 3D editor and export to drop repeated vertices.](https://appliedmanifold.com/mesh/remove-duplicate-vertices-obj/)
-   [meshfxmeshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.](https://appliedmanifold.com/docs/mesh/)

[All pages in meshfx →](https://appliedmanifold.com/mesh/)

[← OBJ duplicate vertices](https://appliedmanifold.com/mesh/remove-duplicate-vertices-obj/)[Wrong size in Godot →](https://appliedmanifold.com/mesh/model-wrong-size-godot/)

04 // FAQ

## STL welding questions

[All questions →](https://appliedmanifold.com/faq/)

**README.REMOVE\_DUPLICATE\_VERTICES\_STL**

### How do I weld overlapping vertices in an STL before using it in a game?

Merge by distance in your 3D editor, then export GLB or FBX. Those formats store shared vertices so the weld is kept.

### Why do duplicate vertices cause shading problems on an STL?

Each loose triangle gets its own normals, so the model shades flat and faceted. After a weld, smooth shading averages across shared corners.

### Why does my STL show every edge as open?

The triangles are not welded, so each edge borders one face. Merge by distance and check again to see what remains.

### Do I need to weld an STL before 3D printing?

No. Slicers match corners by position when they read the file, so weld only when you want to edit, repair or smooth the model.

## Explore meshfx outputs

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

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx →](https://appliedmanifold.com/docs/mesh/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
