3D wireframe plot: a mesh view of a surface
A 3D wireframe plot draws a surface as a mesh of lines: each line follows the response along one row or one column of a grid over two variables, and the lines together outline the shape. It is a 3D surface plot without the shading, so you can see through it to the parts behind. It suits grids of measured values, such as heights across a plate or temperatures across a mold, as well as fitted models.
When to use it
- You have measurements on a regular grid, for example from a coordinate measuring machine (CMM), and want to see the overall form: bow, twist, dish or step.
- You want to compare the shape of a surface with a reference, such as a part before and after stress relief.
- You need to see the back of a surface that a shaded plot would hide.
- You want a picture of a fitted model with a coarse grid where each line can be followed.
How it works
- Arrange the response as a table: rows for one variable, columns for the other, one height in each cell.
- Place each value at its (x, y) position and height z.
- Join neighboring points along each row with a line, and along each column with another line. The result is a net of quadrilaterals.
- Project the net in perspective from a chosen angle. Hidden-line removal, if available, drops the lines behind the surface so the front reads clearly.
A coarse mesh (5 × 5 to 15 × 15) keeps each line traceable. With fine grids the lines merge into a dark mass, and a shaded surface or a contour plot works better.
Example
A machine shop finishes an aluminum fixture plate, 400 × 400 mm, with a flatness tolerance of 15 µm. A CMM probes the top face on a 100 mm grid, 25 points, and reports heights in µm relative to the first corner:
| y \ x | 0 mm | 100 mm | 200 mm | 300 mm | 400 mm |
|---|---|---|---|---|---|
| 400 mm | −13.6 | −8.0 | −1.9 | 4.1 | 9.3 |
| 300 mm | −10.7 | −6.5 | −3.5 | 0.7 | 3.9 |
| 200 mm | −6.5 | −5.8 | −4.3 | −3.1 | −0.8 |
| 100 mm | −2.9 | −4.5 | −4.6 | −5.7 | −6.9 |
| 0 mm | 0.0 | −3.4 | −6.3 | −10.6 | −11.0 |
The table is hard to read as a shape. As a wireframe, five lines run along x and five along y. Two corners, at (0, 0) and (400, 400), sit high, and the other two, at (0, 400) and (400, 0), sit low: the mesh forms a saddle. The plate is twisted, not bowed.
The numbers behind the picture:
- Raw peak to valley is 9.3 − (−13.6) = 22.9 µm. Part of that is tilt: the plate was not perfectly level on the CMM table, and tilt is not a flatness error.
- Removing the best-fit plane (least squares) takes out the tilt. The remaining heights at the corners are +8.9 and +8.6 µm at (0, 0) and (400, 400), and −8.7 and −7.7 µm at the other two. Their peak to valley is 17.7 µm.
- Minimum-zone flatness, the distance between the two closest parallel planes that enclose all points (the definition in geometric tolerancing), is a little smaller, about 17.0 µm, still above the 15 µm tolerance.
A wireframe of the residuals after the plane is removed shows the twist even more clearly. A twist like this often comes from clamping during machining or from residual stress released after the last cut, so the next steps are to check the clamping sequence and consider a stress-relief step before finishing.
How to read the results
- Overall form. A bowl or dome means bow; opposite corners up and down mean twist; a sudden step in the lines means a ledge or a measurement problem.
- Tilt versus form. A surface that is flat but tilted is a setup issue, not a shape issue. Remove the best-fit plane before judging form.
- Local bumps. A single raised node may be a burr, a chip under the probe, or one bad reading. Check it.
- Scale. The vertical axis is usually magnified thousands of times relative to the plate size; a dramatic-looking saddle may be a few micrometers.
Common mistakes
- Reading the magnified height as real. Always check the vertical scale and its units.
- Judging flatness from raw heights. Raw peak to valley includes tilt and overstates the flatness error.
- Too fine a mesh. Hundreds of lines become a blur. Thin the grid for the plot, or switch to a shaded surface or contour map.
- Trusting interpolation between distant points. With 100 mm spacing, a narrow dent between grid points is invisible. Grid spacing limits what the plot can show.
Frequently asked questions
What is the difference between a wireframe plot and a surface plot?
Both draw the same grid in 3D. A wireframe shows only the lines, so you can see through it; a surface plot fills and shades the patches, which reads better for fine grids but hides what is behind.
How is flatness calculated from CMM points?
Strictly, as the minimum-zone distance: the smallest gap between two parallel planes that contain all the measured points. The peak to valley about a least-squares plane is a common, slightly larger approximation.
What grid size works best for a wireframe?
Roughly 5 × 5 to 15 × 15 lines. Fewer hide the shape; more turn into a dense mesh that is hard to follow.
Can I plot a fitted model as a wireframe?
Yes. Evaluate the model on a grid and draw it like measured data. For reading exact settings, add a contour plot.