A scan that won’t slice, a print with a missing wall, or an inspection file the software refuses to load all point to the same place to look first: the triangle mesh. A triangle mesh is a 3D surface built from flat triangles joined edge to edge. It is the form an STL (stereolithography) file takes, the de facto standard file for 3D printing, and most 3D scanning software can export one.
Two things decide what a mesh is good for. The number of triangles sets how much detail it holds and how heavy the file gets. Whether those triangles close into one sealed surface decides whether a printer, an inspection program, or a CAD (computer-aided design) package can use it at all. If you are working back from raw scan data, our explainer on how a 3D scanner captures a point cloud covers the step before meshing.
What Is Inside a Triangle Mesh?
Each triangle is stored as three corner points, called vertices, and each vertex is an X, Y, and Z coordinate. In an STL, every triangle also carries a normal: a direction perpendicular to the face that points out of the part. Its corners are listed counterclockwise, viewed from outside.
That outward direction does real work. A slicer uses it to tell solid material from empty space, and a viewer uses it to shade the surface. Triangles are the building block because a triangle is always flat, and any other polygon can be split into triangles without changing the shape.
The same flatness makes curves expensive. A cylinder that CAD stores as one exact surface has to be approximated by many narrow facets, and the smoother it needs to look, the more facets it takes. STL keeps only that geometry, with no standard way to store color or texture. The Wavefront OBJ format can hold triangles or larger polygons plus texture coordinates and a companion material file, which makes it the better choice when a scan’s color has to survive.
Polygon Count, File Size, and Decimation
Every triangle in a binary STL takes exactly 50 bytes: twelve 4-byte numbers for the normal and the three corners, plus a two-byte field at the end. A mesh of one million triangles is therefore about 50 MB before anyone opens it. The ASCII (plain text) version of the same mesh is far larger, which is why most STL files in use are binary.
There is a practical ceiling, too. Protolabs Network advises keeping print files under about a million triangles, and it points out that detail finer than a printer can reproduce only makes the file harder to handle.
Decimation brings the count down. Good decimation algorithms measure how far each removal would move the surface, so flat regions give up their triangles first while creases, edges, and tight curves keep theirs. In Garland and Heckbert’s 1997 paper on quadric error metrics, a 69,451-triangle model cut to 1,000 triangles, about 1.4 percent of the original, still kept its major contours. We would always decimate a copy and keep the full-resolution mesh as the record, because detail removed from a mesh can’t be put back.
When Should a Mesh Stay Heavy?
Low poly simply means few triangles. It suits anything that has to be drawn on screen quickly, such as a web viewer or a design review, because the cost of displaying a model rises with the number of faces. It also suits a mesh used only as a guide while a part is remodeled in CAD, where the engineer needs the shape and not every speck of scan noise.
High poly earns its file size when the mesh itself is the product. A printed replica of a sculpture, an archival record of an object, and an inspection comparison that colors every deviation from the nominal model all depend on detail surviving.
The deciding question is the smallest feature the next step needs. We would size the mesh to that feature and no finer, and we would settle it before scanning rather than after. Meshing finer than the scan data supports only adds triangles, since no setting can put back detail the scanner never measured.
Four Faults That Break a Mesh
In a sealed triangle mesh, every edge is shared by exactly two triangles. Two of the four faults below break that rule, one in each direction.
An edge that belongs to only one triangle is a boundary edge, and a ring of them is a hole. The mesh no longer encloses a volume, so software has to guess what is inside. Protolabs Network notes that most slicers will still process it, but that a gap in a curved wall is likely to be capped with a flat surface, which quietly changes the part. On a scan, a hole can simply mark an area where no usable data came back, which reflective and transparent surfaces are known for.
An edge shared by more than two triangles is non-manifold. It shows up when an internal wall is left inside the part, or when two separate bodies meet along a single edge. Either way, the file no longer says whether the design is one piece or two.
A flipped normal points into the part instead of out of it. The facet sits in the right place, but it now reports its outside as inside, and the clean split between solid and empty that the slicer relies on is gone.
Intersecting faces are the fourth fault. They appear when separate bodies overlap without being merged into one solid. Protolabs Network links them to slicing failures and erratic toolpaths, and in some cases to a printer depositing double material in the overlap.
Repairing a Mesh Without Changing the Part
Repair software handles the routine faults on its own. It closes small holes and turns flipped normals back outward. It also deletes duplicate faces, strips away stray shells, and merges overlapping bodies into one.
Large holes need a decision about how to fill them, and whatever shape the software chooses is a guess at a surface nobody measured. When the missing area matters, rescanning it beats inventing it. Every fill and smoothing pass adds or moves triangles. We would check a repaired mesh against the original scan before it goes to print or inspection, so a patch never shifts the surface further than the job allows.
Repair has a hard limit. It can make a mesh printable and measurable, but the result is still an approximation made of flat facets, with no editable features and no exact curves. When a part needs new dimensions or tolerances, the mesh becomes reference geometry for a CAD rebuild. Our guide to choosing between a clean STL and a scan-to-CAD model covers where that line falls.
Our introduction to 3D scanning covers where meshes come from in the first place. For a file that won’t slice or keeps failing inspection, describe the part and its end use on our contact form, or call us on 718-557-9578. The end use is what settles whether the fix is a repair, a rescan, or a CAD rebuild.



