Skip to main content

Function: importSTLAsMesh()

function importSTLAsMesh(stlBlob): Promise<MeshShape>;

Defined in: importers.ts:173

Imports an STL file (as a Blob or a File) and creates a MeshShape.

Unlike importSTL which converts through OpenCascade's BRep representation, this function directly creates a MeshShape from the triangle data, which is faster and preserves the original mesh.

Supports both binary and ASCII STL formats.

Parameters

stlBlob

Blob

Returns

Promise<MeshShape>