Overview
OpenGeometry can export B-Reps to STEP Part 21 text. You can export a single B-Rep payload or export a whole scene throughOGSceneManager.
Initialization
Initialize the WASM module once before usingOGSceneManager:
Export APIs
exportBrepToStep
exportSceneToStep / exportCurrentSceneToStep
Result type
export*ToStep(...) returns an OGStepExportResult:
STEP Part 21 text output.
A JSON string containing export statistics (skipped entities, triangle counts, topology errors).
Config JSON
All STEP exports accept an optionalconfig_json string. If it is null, undefined, or an empty
string, OpenGeometry uses defaults. If you provide config_json, it must deserialize into the full
StepExportConfig shape (required fields must be present).
Default configuration (Rust):
Key constraints
- When
require_closed_shellistrue, non-solid inputs are skipped in best-effort mode. - When
validate_topologyistrue, invalid B-Reps are skipped (or fail in strict mode).
Examples
Export and download STEP in the browser
Native-only file export
Native-only builds also expose
exportSceneToStepFile(...) (not available in browser/WASM builds).Related
- Exports for an overview of available exporters and runtime constraints
- STL export
- IFC export (experimental)

