StepExplorer
Introduction
StepExplorer started with a focused idea: create a web portal where a STEP file could be opened and inspected in 3D without first installing a desktop CAD application. The result is a browser-based tool for exploring assemblies, understanding their individual parts, and producing a compact bill of materials.
Features
A STEP or STP file can be selected or dropped directly into the viewer. The model can then be rotated, zoomed, and panned, while a sidebar lists every detected part with its dimensions. Selecting an item highlights its solid and edges in the 3D scene so that it can be identified inside the full assembly.
The bill of materials view groups instances that share the same geometry, reports unique types and total quantities, and renders isometric, front, top, and side previews for each group. Measurements are displayed in a readable unit, and the resulting BOM can be downloaded as a CSV file.
Architecture
The application is built with Vite and TypeScript. occt-import-js runs OpenCascade as WebAssembly to parse the STEP data entirely in the browser; the imported meshes are converted into three.js geometries and rendered with orbit controls, lighting, grid, materials, and edge overlays.
The code separates file loading, the interactive viewer, geometry aggregation, unit formatting, and the orthographic BOM renderer. Repeated parts are detected through a rotation- and translation-independent shape signature based on the geometry covariance eigenvalues, together with vertex and index counts. No model needs to be uploaded to a backend: parsing, analysis, visualization, and CSV generation all happen locally in the browser.
Conclusion
StepExplorer grew from a simple 3D file viewer into a practical inspection and parts-analysis tool. It combines a familiar CAD-style interaction model with the accessibility of a web application and demonstrates how a computationally demanding native geometry engine can become a private, client-side workflow through WebAssembly.
The source code is available on GitHub.