Documentation - v20.0.0-dev
    Preparing search index...

    Loads 3D files into the viewer's scene (the engine's FileSources: glTF and .mgeom), with the engine's MeshLoader: its readers in workers, its objects added to the engine scene, the scene's objects made by the BimMeshImportController. Reports through the viewer's loading signals (onLoadingStarted, onLoadingProgress, onLoadingFinished).

    Index

    Constructors

    Properties

    statistics: SceneLoadingStatistics = ...

    What the loadings brought since the scene was last cleared.

    Accessors

    • get isRunning(): boolean

      Whether a loading is running.

      Returns boolean

    Methods

    • Adds a file to the next loading (start).

      Parameters

      Returns void

    • Stops the loading and releases the loader's workers.

      Returns void

    • Loads the files added: resolves once they are loaded, or the loading stopped. A loading running is not started again.

      Returns Promise<void>

    • Stops the running loading: the objects already added stay.

      Returns void