Function loadXGF

  • Imports XGF file data from an ArrayBuffer into a SceneModel.

    See xgf for usage.

    Parameters

    • params: { dataModel?: DataModel; fileData: ArrayBuffer; sceneModel?: SceneModel }

      Loading parameters.

      • OptionaldataModel?: DataModel

        Optional DataModel to create default semantic data in.

      • fileData: ArrayBuffer

        XGF file data

      • OptionalsceneModel?: SceneModel

        SceneModel to load geometry and material colors into.

    Returns Promise<void>

    Resolves when XGF has been loaded.

    SDKError

    • If the SceneModel has already been destroyed.
    • If the SceneModel has already been built.
    • If the DataModel has already been destroyed.
    • If the DataModel has already been built.