Whether the files are placed by their offset (LoadedFile.offset): each batch's matrices
moved by its offset minus the scene's origin, the first offset received becoming that origin.
Off, the matrices are used as given. Read when a load starts.
ReadonlysceneReadonlysignalsThe progress of the current load. Connect before calling load. A throwing listener does not stop the load.
Readonlyended: Signal<(progress: LoadProgress) => void>The load is over: its objects added, or stopped.
Readonlystarted: Signal<(progress: LoadProgress) => void>The load starts.
Readonlyupdated: Signal<(progress: LoadProgress) => void>Files download, objects are read.
Reads the files of the reader's extension; replaces (and stops) the previous reader.
Loads files in parallel; resolves with the final progress once the load is over. Loads are
cumulative: files given while a load runs are added to it. A failing file is reported in
progress.errors, the others still load. Never rejects.
Updates the objects of these files and tells which to keep, before they are queued, then is told those added (see ObjectImportController); default: all kept as read. Each call can give its own: the files of a load added to a running one keep theirs.
Stops the current load and ends it at once; the objects already added stay. Files not done fail with 'the loading was stopped'.
Loads files into
scene.meshController, each read in a worker by the FileReader of its extension (addFileReader).LoadedFile.offset), the first one received becoming the scene's origin (Scene.origin): see applyFileOffsets.shouldKeepObject), e.g. an object already loaded. Objects are also left out when they are invalid (matrix not affine, geometry without vertices).settings.loading.targetContainerSizeMB(orgroupMeshesobjects), each group in a Container of its exact size and one BoxTree subtree.The BoxTree follows a message later (see
MeshController.boxTree), and is rebuilt by its worker once no group was added forsettings.scene.boxTreeRebuildDelayMs: a better tree than the groups', at the end of the load, or at a pause in it (a slow download), the next group then dropping it if it was not done.