Skip to content
OnlineCADTools

STEP to STL Conversion Accuracy Benchmark

Published December 4, 2026Last reviewed December 4, 2026

We ran the production STEP to STL converter in Chromium on 10 synthetic inputs, with three quality presets and three repeats per case. The browser exported 81 binary STL files. The other nine trials supplied the root of an external-reference assembly without its referenced parts and returned empty_result. On the 50 mm sphere, High reduced the absolute volume error from 1.1341% to 0.0586% and increased the STL from 62,284 to 1,256,984 bytes. Four versions of a planar box returned the same analytically expected dimensions and volume at all three presets. Production converter · STEP sample files · Test dataset v0.2.0

Download the raw CSV · Download the reproduction kit · Verify the downloads

Geometry and file size

Each result shows triangle count, binary STL bytes, signed volume error, and maximum bounding-box endpoint error. All geometry figures were identical across the three repeats of each cell. The four box inputs each passed three repeats per preset, for 36 box exports.

ModelLow — triangles / bytes / volume error / box errorStandard — triangles / bytes / volume error / box errorHigh — triangles / bytes / volume error / box error
100 × 50 × 20 mm box, four encodings12 / 684 / 0% / 0 mm12 / 684 / 0% / 0 mm12 / 684 / 0% / 0 mm
Cylinder, R5 × 12 mm132 / 6,684 / −0.5682% / 0.021329 mm272 / 13,684 / −0.1381% / 0.005182 mm608 / 30,484 / −0.0281% / 0.001054 mm
Sphere, R25 mm1,244 / 62,284 / −1.1341% / 0.095133 mm5,008 / 250,484 / −0.2875% / 0.024469 mm25,138 / 1,256,984 / −0.0586% / 0.004942 mm
40 × 20 × 3 mm plate with R3 hole120 / 6,084 / +0.03556% / 0 mm184 / 9,284 / +0.01365% / 0 mm520 / 26,084 / +0.00152% / 0 mm
Inline 20 mm cube plus R5 × 20 mm pin112 / 5,684 / −0.15928% / 0.036456 mm176 / 8,884 / −0.06115% / 0.013981 mm512 / 25,684 / −0.00680% / 0.001554 mm
Two-box inline control24 / 1,284 / 0% / 0 mm24 / 1,284 / 0% / 0 mm24 / 1,284 / 0% / 0 mm
Two-box external-reference root alone3 × empty_result3 × empty_result3 × empty_result

The plate's external extents were unchanged while its tessellated hole affected volume. The sphere STL contained two facets whose vertices collapsed to fewer than three distinct vertices at the benchmark's quantization step. Those facets remain in the reported triangle and byte counts. All 81 exports passed the welded edge-incidence check, which measures one aspect of mesh closure.

Triangle count, absolute volume error and bounding-box endpoint error for four curved models across the Low, Standard and High presets
On the four curved models, finer presets reduced measured volume error and increased mesh size. The first two panels use logarithmic scales.

AP203, AP214, AP242, and inch input

The matched planar controls were AP203 in millimetres, AP214 in millimetres, AP242 in millimetres, and AP214 with an explicit inch unit. The UI's worker classified each header and unit as expected. All 36 box exports had numeric extents of 100 × 50 × 20 and volume 100,000 in the converter's millimetre output convention. Binary STL carries no unit metadata, so recipients need the convention when importing it. The schema check covers a simple closed planar solid. AP242 PMI, model trees, and wider vendor-specific schema coverage are outside this experiment. Public fixtures and oracles

External part files

The two newly authored controls use the same two 10 × 12 × 15 mm boxes, with the second offset by +30 mm on X. Their total volume is 3,600 mm³ and their overall bounding box is [0, 0, 0] to [40, 12, 15] mm. A native OCCT XCAF reader recovered both solids and their placement from each layout when the referenced part files were available beside the root. The inline file exported correctly in all nine browser trials. The browser drop zone supplied the root file alone for the multifile layout, and all nine trials returned empty_result. The paired experiment covers the converter's single-file path. The reproduction kit includes both controls, their source notes, and the MIT license. OCCT STEPCAFControl reader

Conversion time and memory

The table reports per-preset medians over the 27 successful trials for each preset. Worker time starts when the worker receives the file and includes WASM startup and import. The UI measurement starts immediately before Playwright supplies the file and stops when the download button is ready. It includes automation overhead, preview preparation, and UI scheduling. Renderer heap figures are V8 used-heap snapshots before file selection and just after export. The WASM measurement is the worker's allocated linear memory at result time.

PresetRead and tessellate (ms)Worker time (ms)Worker message round trip (ms)UI ready (ms)WASM at result (MiB)Renderer V8 before / after (MiB)
Low145.6195.4200.91,793.128.5610.28 / 9.81
Standard148.5198.1202.81,937.328.5610.32 / 9.75
High149.2208.7214.61,892.728.5610.23 / 9.83

For the sphere alone, median worker time was 181.6, 217.7, and 518.2 ms across Low, Standard, and High. WASM linear memory at result was 28.56, 28.56, and 41.19 MiB. The High sphere's renderer V8 used heap after export was 16.49 MiB. In the other 78 exports the worker retained 28.56 MiB of linear memory at result. The measurements cover one Apple M1 on a shared, loaded host. They provide snapshots of two memory pools. Peak memory, browser-wide RSS, GPU memory, and performance on other devices are outside the measurement. Raw V8 backing-storage snapshots are in the CSV. Chromium CDP heap measurement · Environment and deployed asset fingerprints

Median STEP worker time and result-time WASM linear memory allocation across the three presets
The High sphere took 518.2 ms in the worker and retained 41.19 MiB of WASM linear memory at result time. The other cases used 28.56 MiB.

Method

  1. Use the eight authorized synthetic inputs at the v0.2.0 tag and the two original MIT-licensed assembly roots. The runner verifies all eight suite fixture digests against the tag manifest and records every input SHA-256. CadQuery 2.8.0 generated the inline and multifile controls using OCCT XCAF. Public tag · Control generator in the reproduction kit
  2. Open the production converter in headless Chromium 145.0.7632.6 on Darwin arm64. Select the preset in the public UI, supply the file through the browser file input, and download the default binary STL. Rotate preset order between repeats. Reuse the warm browser document and HTTP cache while the application opens a fresh worker for each file. We recorded the live worker, WASM glue and WASM binary SHA-256 to identify the measured engine. Browser runner in the reproduction kit · Engine evidence
  3. Capture the production worker's preset settings from its result. Low uses 0.004 relative linear deflection and 0.5 rad angular deflection. Standard uses 0.001 and 0.3 rad. High uses 0.0002 and 0.1 rad. These control tessellation. Actual geometric deviations depend on the part and features.
  4. Independently parse the downloaded binary STL. Read the facet count as a little-endian 32-bit integer, require file size 84 + 50 × triangles, and read exported float32 vertices. Compute the six bounding-box endpoints, then use the maximum absolute deviation from the analytic endpoints as the error in millimetres. For edge incidence, quantize vertices on a grid of 1e-7 × reference bounding-box diagonal, count facets which collapse under the grid, and count boundary and nonmanifold edges. For cases passing that edge check, sum signed tetrahedra a · (b × c) / 6 using the exported coordinates, then take the absolute volume. Report 100 × (mesh volume − analytic volume) / analytic volume as signed volume error. The signed-volume calculation assumes consistently oriented surfaces. The edge check leaves self-intersection and local surface deviation outside the reported metrics.
  5. Derive the reference volumes from box products, π × 5² × 12 for the cylinder, 4π × 25³ / 3 for the sphere, 40 × 20 × 3 − π × 3² × 3 for the drilled plate, and the sum of component volumes for both disjoint assemblies. Derive extrema from the stated sizes and placements. Geometry values in the charts are medians, with the individual STL digest, metrics and outcomes preserved for every trial. This corpus supports comparisons of geometric approximation on these controlled inputs. Machining, printing and inspection tolerances require validation for the actual part and process. Trial CSV

Historical Node.js proof of concept

The 30 November proof of concept ran Node.js v25.6.1 and measured the imported mesh, prior to binary STL export. The archived sphere and inline cube-plus-pin results give the same triangle counts as the new browser runs and agree with the browser volume and bounding-box errors at the historical rounding precision. The old cylinder and drilled plate have different geometry. The historic performance corpus uses different inputs and records Node process RSS deltas, so its measurements remain in a separate archive from the browser timing and memory data. Historical accuracy · Historical performance

Reproduce

Download and extract the reproduction kit, then run these commands from the extracted directory. The runner uses the public converter and versioned fixtures.

bench_dir="$(mktemp -d)"
git clone --branch v0.2.0 --depth 1 \
  https://github.com/Coreyk888/cad-geometry-test-suite.git "$bench_dir/suite"
npm install --prefix "$bench_dir/runner" @playwright/test@1.65.1
"$bench_dir/runner/node_modules/.bin/playwright" install chromium
mkdir -p "$bench_dir/output/external-control"
cp external-control/* "$bench_dir/output/external-control/"
NODE_PATH="$bench_dir/runner/node_modules" \
  node scripts/step_stl_browser_benchmark.cjs - "$bench_dir/suite" "$bench_dir/output" \
  https://onlinecadtools.com 3
uv run --python 3.12 --with matplotlib==3.11.2 \
  python scripts/summarize_step_stl_benchmark.py "$bench_dir/output"

Set PLAYWRIGHT_CHROMIUM_PATH if you have a matching Chromium executable. Compare the new environment JSON with the archived SHA-256 and browser version to detect changes in production or the runner. After the three-repeat experiment, a one-repeat run in standalone mode reproduced all 27 exported STL digests and all three external-root error outcomes. To rebuild the assembly controls in an empty directory, use uv run --python 3.12 --with cadquery==2.8.0 python scripts/make_step_external_control.py <empty-directory>.