Inspecting Raw STL Triangle Soup Without Smooth-Shading Masking
Why Flat Normal Shading Is Essential for CAD Tessellation Review
Smooth Phong or Gouraud vertex interpolation averages adjacent face normals, visually disguising coarse chordal tessellation, flipped facet winding, and pinched sliver triangles exported from parametric CAD kernels. Defaulting the STL stage to flat per-facet shading renders every planar triangle crisp and unblended so faceting artifacts on cylindrical bores and fillets are unmistakable before CNC CAM or resin slicing.
Our parser automatically distinguishes 80-byte-header binary STL streams (verifying the exact 84 + 50 × N byte length invariant) from ASCII solid/facet text streams, rejecting truncated buffers and NaN vertex floats immediately. Because STL headers contain zero standardized unit fields, the inspector never guesses silently—it labels the active millimetre assumption clearly and pairs it with inch and metre equivalents.
- Validates binary STL 50-byte triangle records (12-byte normal, 36-byte Float32 vertices, 2-byte attribute count).
- Highlights open boundary holes in amber and non-manifold shared edges in rose directly inside the 3D stage.
- Switches instantaneously between millimetre, inch (25.4 mm), and metre interpretations.
Reading Raw Coordinate Extents on Unitless Meshes
On edge-incidence.stl, the three facets occupy X in [0, 10], Y in [-10, 10], and Z in [0, 10]. Checking both minimum/maximum bounds and negative quadrant offsets reveals whether a part sits below the Z = 0 build plane before importing into a print slicer.