Skip to main content
STEP export is experimental and may change. If you hit an exporter limitation or confusing output, reach out on Discord.

Overview

OpenGeometry can export B-Reps to STEP Part 21 text. You can export a single B-Rep payload or export a whole scene through OGSceneManager.

Initialization

Initialize the WASM module once before using OGSceneManager:

Export APIs

exportBrepToStep

exportSceneToStep / exportCurrentSceneToStep

Result type

export*ToStep(...) returns an OGStepExportResult:
string
STEP Part 21 text output.
string
A JSON string containing export statistics (skipped entities, triangle counts, topology errors).

Config JSON

All STEP exports accept an optional config_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):
Example JSON payload:

Key constraints

  • When require_closed_shell is true, non-solid inputs are skipped in best-effort mode.
  • When validate_topology is true, 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).
Last modified on March 14, 2026