Choose STEP-to-STL tessellation settings with a measured example
Tessellation replaces a CAD surface with triangles. Finer settings can increase triangle count and file size, but the result depends on the surface and the kernel's other controls. Use a representative part and inspect the output instead of treating one tolerance as suitable for every task.
A cylinder with known geometry
Our source cylinder has a radius of 10 mm and height of 20 mm. We hold angular deflection at 1 radian and change absolute linear deflection. Each output is exported as binary STL and reread for verification.
| Requested linear deflection (mm) | Triangles | STL bytes | Sampled chord error (mm) |
|---|---|---|---|
| 1 | 48 | 2484 | 0.290582 |
| 0.1 | 124 | 6284 | 0.048153 |
| 0.01 | 396 | 19884 | 0.004934 |
The coarse mesh does not reach the circle's full diameter on every axis: its vertices approximate the circumference. The finer samples reach 20 × 20 × 20 mm mesh bounds in this experiment. A source surface's exact bounds and a sampled mesh's bounds need not be identical.
What the error column measures
For horizontal edges on the cylinder's side triangles, we compare each edge midpoint's distance from the cylinder axis with the analytic 10 mm radius. The largest sampled radial difference is the number in the table. It does not measure every point on the surface, every direction of deviation, or a manufacturing tolerance.
The occt-import-js documentation distinguishes an absolute deflection value from a bounding-box ratio. These preparation controls use absolute millimetres. The report records the requested setting separately from this case study's measured chord error.
Try a setting before committing to it
Preview the mesh, inspect curved regions, and compare triangle count and download size. Keep a setting only when its result fits the receiving application's needs. A very fine setting can require more time and memory; this tool limits input size and triangle count, and Cancel terminates the active worker. If the operation stops, the last completed model remains available. Keep the original CAD source because an STL cannot restore the exact curves later.
Try these files
These samples were created by this project and released under CC0. They contain no visitor files. Sizes and SHA-256 hashes identify the exact bytes measured in this experiment.
- Project-created cylinder: radius 10 mm, height 20 mm. (STEP, 5,664 bytes)
SHA-256
0004159d7b2a121deb50aeba379c153ed27b412a8a38782a65513b3a58583a1e - Cylinder mesh requested at 1 mm and 1 radian deflection. (STL, 2,484 bytes)
SHA-256
bdc9ccb6e114a8551ddd7be048fc196698fdb7515809ac823cd8caeb6f05d48f - Cylinder mesh requested at 0.1 mm and 1 radian deflection. (STL, 6,284 bytes)
SHA-256
6b3f48cde1ce6947679e17bb4dfb113aae53e67a64ed5c651f2311551ddded9a - Cylinder mesh requested at 0.01 mm and 1 radian deflection. (STL, 19,884 bytes)
SHA-256
7eda344c85a068e99ebb04bd64850c96282c19f2b1ac88bcdc32c7a3f96de883
See the measurement method, exact files, and reproduction details