A mesh file such as STL or 3DS describes a part as thousands of tiny flat triangles. CNC machining needs exact geometry: true circles, true cylinders, flat faces and clearly defined edges. A mesh can only approximate these, which makes it a poor starting point for machined parts, especially those with tight tolerances.
That does not make mesh files useless. They are the right choice for 3D printing, visualisation and some scanned or sculpted shapes. This guide explains what a mesh file is, why it causes trouble in machining, when it can still be acceptable, and what to do when a mesh is all you have.
Quick answer
- Mesh files (STL, 3DS, OBJ, PLY) store a surface as triangles. Every curve becomes a series of straight facets.
- CNC work needs exact geometry: STEP, IGES or a native CAD file with true cylinders, planes and edges.
- The main problems are lost accuracy, no recognisable features, missing units, gaps in the surface and almost no way to edit.
- The best fix is to ask for the original CAD file. The second best is to rebuild the part as a proper solid, using the mesh as a reference.
What is a mesh file?
A mesh is a surface made of many small flat polygons, usually triangles. Each triangle is defined by three corner points, called vertices. Join enough triangles together and they form a shape.
Common mesh formats include:
- STL: the standard format for 3D printing. It stores triangles only, with no units and no features.
- 3DS: the older 3D Studio format, used mainly in visualisation, animation and games. It stores polygon meshes and scene data, not manufacturing geometry.
- OBJ, PLY and 3MF: other mesh formats used for 3D scanning, printing and graphics.
Meshes are easy to produce and light to process, which is why they dominate 3D printing, game design and scan data. They were never designed to describe a precisely dimensioned part.
What CNC machining needs instead
Most CAD systems store solids as a boundary representation, often called a B-rep. The part is a set of exact faces (planes, cylinders, cones, spheres and smooth freeform surfaces) joined along exact edges. Formats such as STEP and IGES carry this geometry between systems, and native files such as SLDPRT hold it inside a single program.
That exact description matters because CAD/CAM software uses it to:
- Recognise features such as holes, pockets, slots and bosses
- Select faces and edges to machine
- Generate toolpaths from true surfaces
- Measure diameters, distances and angles exactly
- Apply tolerances, allowances and tool compensation
| Property | Mesh (STL, 3DS) | Solid (STEP, native CAD) |
|---|---|---|
| Curves | Straight facets | True curves |
| A hole | A ring of triangles | A cylindrical face with a real diameter |
| Units | None stored (STL) or unreliable | Defined in the file |
| Features | None | Recognisable by CAM |
| Editing | Very difficult | Feature-based or direct editing |
| File size for smooth parts | Grows quickly | Compact |
Why meshes cause problems in machining
1. Curves are only approximated
In a mesh, every curve is a series of straight segments. A finer mesh gets closer to the true shape, but never reaches it.
Here is a real example. Take a 20 mm hole stored as a circle of 32 straight segments. At the middle of each segment, the straight edge sits about 0.05 mm inside the true circle. A 20 mm H7 bore allows only 0.021 mm of variation in total. The model's own error is already more than twice the tolerance band before any metal is cut.
Doubling the number of segments cuts that error to roughly a quarter, but the file gets larger and the error never reaches zero. On curved surfaces, the facets can also show up in the toolpath and leave a faceted finish unless the software smooths them.
2. Features are not recognised
A hole in a mesh is not a hole. It is a ring of triangles. CAM software cannot select "this 8 mm hole" to drill or tap, cannot read its depth, and cannot find the floor of a pocket. The programmer must rebuild each feature by hand or machine it as raw surface, which takes time and adds risk.
3. No units and uncertain scale
An STL file stores plain numbers with no unit attached. The same file can be read as millimetres or inches, and that is a 25.4 times difference. A 3DS file may carry scale settings, but they depend on the program that exported it.
Scale mistakes are a classic cause of wrong quotes and scrapped material. Whenever you receive a mesh, confirm at least one known dimension with the sender before you do anything else.
4. Gaps and surface errors
Meshes often contain defects, such as:
- Holes or gaps in the surface
- Overlapping or duplicate triangles
- Flipped faces (the "inside" and "outside" are reversed)
- Edges shared by more than two faces
A mesh that is not watertight does not define a closed volume. That makes volume and weight calculations unreliable, breaks operations that compare stock to part, and can cause toolpaths to gouge or skip areas.
5. Measurements are unreliable
Measure a diameter on a mesh and you get the distance between two facet points. The result depends on where you click. You cannot use a mesh to confirm a tolerance, because the model does not hold the true dimension.
6. A mesh is very hard to edit
Machining jobs often need small changes: more stock for a finishing cut, a corner radius for the cutter, a shifted hole. With a solid you change a dimension or move a face. With a mesh there is no feature history, so every change means sculpting triangles or remodelling the part.
7. No tolerances, datums or finish information
A mesh cannot carry tolerances, datum references, surface finish or thread callouts. All of that has to come from a separate drawing. A mesh sent alone leaves out much of what a machinist needs.
8. Large files and slow software
Smooth surfaces need many triangles. Detailed models can reach millions of them, which slows down CAM programs and toolpath calculation.
"But my CAM software can open STL files"
That is true. Many CAM systems can import STL, and some can generate toolpaths directly from it. This works in specific cases, such as 3D carving in wood or foam, sculpted shapes, pattern making, and roughing out organic forms where final accuracy is not critical.
Even then, the result is limited by the mesh resolution, and the part is hard to dimension or inspect. For precision metal parts with tolerances, it is rarely adequate.
When a mesh file is acceptable
- 3D printing and rapid prototypes
- Visualisation, presentations and fit-check mock-ups
- Scanned parts used as a reference for reverse engineering
- Artistic or organic shapes in soft materials
- A casting or forging model used as a reference for allowances
Can you just convert an STL to STEP?
You can, but conversion does not turn triangles into true geometry. Most automatic converters make what is called a faceted solid: every triangle becomes a tiny flat face. The file has a STEP extension, yet it still has no true cylinders, no recognisable holes and often an enormous number of faces. It can serve as a reference, but it is still a poor model to machine from.
The real fix is reconstruction, meaning you build a proper solid that matches the mesh:
- Place the mesh in CAD as a reference.
- Take sections and sketches at key positions.
- Model the planes, cylinders, fillets and other features with clean dimensions that match the design intent.
- Compare the new model against the mesh (a deviation check) to confirm the accuracy.
Reverse-engineering software can speed this up for scanned parts by fitting surfaces automatically, but the result still needs checking against the original.
How to tell whether a file is a mesh
- Check the extension: .stl, .3ds, .obj, .ply and .3mf files are meshes.
- Zoom in on a curve or hole: visible flat facets mean it is a mesh.
- Turn on the edge or wireframe view: a mesh shows triangles.
- Try selecting a face in CAD: if you cannot pick a cylindrical face or see a feature tree, it is probably a mesh.
- Be careful with STEP files: a STEP file converted from a mesh can break a curved surface into many small flat faces. If you see that, treat it as a mesh.
What to send a machine shop instead
- The original CAD file, or a STEP file (IGES if STEP is not possible)
- A 2D drawing with dimensions, tolerances, threads, surface finish and material
- The units, stated clearly
- Quantity, material and any heat treatment
- For flat profiles cut by wire EDM or laser, a DXF with closed profiles
- If only a mesh exists, say so, and list the key dimensions and the tolerance-critical features
What a machine shop should ask when it receives a mesh
- Does the original CAD file exist?
- What are the units? Can you confirm one dimension?
- Which features are critical for fit or function?
- Is there a drawing?
- Did the mesh come from a scan or from a CAD export?
- Is remodelling time included in the quote?
Common mistakes
- Exporting an STL out of habit from 3D printing and sending it to a CNC shop
- Using low-resolution export settings, which leaves visible facets
- Assuming a format conversion will fix the model
- Trusting dimensions measured on a mesh
- Forgetting to state the units
- Quoting from a mesh without checking that it is watertight
FAQ
Can a CNC machine use an STL file? Some CAM software can create toolpaths from an STL, but the accuracy is limited by the triangles. It suits sculpted shapes and carving, not precision parts.
Is a 3DS file good for manufacturing? No. 3DS is a visualisation format. It describes a mesh and scene data, not exact manufacturing geometry.
What is the difference between STL and STEP? STL describes a surface as triangles and has no units or features. STEP describes exact geometry such as cylinders, planes and edges, so it is the better choice for machining.
Can a 3D scan become a machinable model? Yes, but it needs reconstruction. The scan mesh is used as a reference to build a proper solid, and the result is checked against the scan.
What STL resolution do I need for CNC? No resolution makes a mesh exact. If an STL is unavoidable, export it with a fine chord tolerance and agree the critical dimensions on a drawing.
Summary
A mesh describes a part with flat triangles, so curves are approximated, features are missing, units are uncertain and edits are hard. That makes it a poor starting point for CNC machining. Ask for the original CAD or a STEP file, add a drawing with tolerances, and if only a mesh exists, rebuild it as a proper solid and check it against the mesh before cutting metal.
Check the file you received
If a customer or supplier sends you a file and you want to look at it before you quote or program it, AlwaysReach's free CAD Viewer opens STEP, IGES, SLDPRT, 3DS and Rhino files in your browser, so you can inspect the model and measure features. For critical dimensions, always confirm against the drawing.