bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class BabylonIO

    Index

    Constructors

    • Parameters

      • context: Context

      Returns Bit.BabylonIO

    export

    • Exports the whole scene to .babylon scene format. You can then edit it further in babylonjs editors.

      Parameters

      Returns void

      babylon scene

    • Exports the whole scene to .glb format. This file format has become industry standard for web models.

      Parameters

      Returns void

      gltf scene

    • Exports the mesh with its children to stl

      Parameters

      Returns Promise<any>

      babylon mesh to stl

    • Exports the meshes to stl

      Parameters

      Returns Promise<any>

      babylon meshes to stl

    load

    • Imports mesh from the asset that you have uploaded for the project. You must upload your assets to your project via project management page.

      Parameters

      Returns Promise<Mesh>

      scene loaded mesh

      asset

      true

    • Imports mesh from the asset that you have uploaded for the project. You must upload your assets to your project via project management page.

      Parameters

      Returns Promise<void>

      scene loaded mesh

      asset

    • Imports mesh from the asset url that you have uploaded to an accessible web storage. Keep in mind that files need to be publically accessible for this to work, be sure that CORS access is enabled for the assets.

      Parameters

      Returns Promise<Mesh>

      scene loaded mesh

      asset from url

      true

    • Imports mesh from the asset url that you have uploaded to an accessible web storage. Keep in mind that files need to be publically accessible for this to work, be sure that CORS access is enabled for the assets.

      Parameters

      Returns Promise<void>

      scene loaded mesh

      asset from url

    • Loads GLB binary data directly into the scene from a Uint8Array. This is useful when you have GLB data from sources like OCCT's convertStepToGltf method.

      Parameters

      Returns Promise<Mesh>

      scene loaded mesh

      glb from array buffer

      true

    • Loads GLB binary data directly into the scene from a Uint8Array without returning the mesh. This is useful when you have GLB data from sources like OCCT's convertStepToGltf method.

      Parameters

      Returns Promise<void>

      glb from array buffer no return

      true