Import a STEP file from a Blob.
Writes the blob to the WASM virtual filesystem, reads it with STEPControl_Reader, and returns the resulting shape.
STEPControl_Reader
A Blob or File containing STEP data (.step / .stp).
A Result wrapping the imported shape, or an error if parsing fails.
Result
The temporary file on the WASM FS is cleaned up automatically.
const file = new File([stepData], 'part.step');const shape = unwrap(await importSTEP(file)); Copy
const file = new File([stepData], 'part.step');const shape = unwrap(await importSTEP(file));
Import a STEP file from a Blob.
Writes the blob to the WASM virtual filesystem, reads it with
STEPControl_Reader, and returns the resulting shape.