Import an STL file from a Blob.
Reads the mesh, unifies same-domain faces with ShapeUpgrade_UnifySameDomain, and wraps the result as a solid.
ShapeUpgrade_UnifySameDomain
A Blob or File containing STL data (binary or ASCII).
A Result wrapping the imported solid, or an error if parsing fails.
Result
The temporary file on the WASM FS is cleaned up automatically.
const shape = unwrap(await importSTL(stlBlob)); Copy
const shape = unwrap(await importSTL(stlBlob));
Import an STL file from a Blob.
Reads the mesh, unifies same-domain faces with
ShapeUpgrade_UnifySameDomain, and wraps the result as a solid.