Static class for loading a model from a Uint 8 array...

note this is only the initial model parse, no geometry extraction has been performed.

Constructors

Methods

Constructors

Methods

  • Load a model using the format detector

    Parameters

    • data: Uint8Array<ArrayBufferLike>

      The buffer to load from.

    • limitCSGDepth: boolean = true

      Whether to limit CSG depth during geometry extraction.

    • maximumCSGDepth: number = 20

      The maximum CSG depth allowed during geometry extraction.

    • modelID: number = 0

      The model id to use for statistics (or 0 if none is provided)

    • Optionaloptions: ModelLoadOptions

      Optional progress/yield options for the load.

    Returns Promise<[Model, Scene]>

    A promise to return the loaded model and scene.