brepjs API Reference
    Preparing search index...

    Function importGLB

    • Import a GLB (binary glTF) file from a Blob.

      Delegates to the kernel's importGLB method, which reconstructs B-Rep geometry from the mesh data.

      Parameters

      • blob: Blob

        A Blob or File containing GLB data.

      Returns Promise<Result<UnknownDimShape>>

      A Result wrapping the imported shape, or an error if parsing fails.

      const shape = unwrap(await importGLB(glbBlob));