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.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the 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
- Import the STL into your 3D editor. If the importer offers to merge vertices, leave it on.
- 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.
- Check that the vertex count dropped to about a sixth.
- Run Select Non-Manifold to find real holes left after welding.
- Use smooth by angle so flat faces keep crisp edges.
- 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.
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.