Constructor
new InstancedTileLoader(sceneopt, optionsopt)
Creates a tile loader with a maximum number of cached items and callbacks. The only required property is a renderer that will be used to visualize the tiles. The maxCachedItems property is the size of the cache in number of objects, mesh tile and tileset.json files. The mesh and point callbacks will be called for every incoming mesh or points.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scene | scene | <optional> | a threejs scene. | |||||||||||||||||||||||||||||||||||||||||||||
options | Object | <optional> | Optional configuration object.Properties
|
Methods
get(abortController, path, uuid, instancedOGC3DTile, distanceFunction, getSiblings, level, sceneZupToYup, meshZupToYup, geometricError)
Schedules a tile content to be downloaded
Parameters:
Name | Type | Description |
---|---|---|
abortController | AbortController | |
path | string | path or url to tile content |
uuid | string | | tile id |
instancedOGC3DTile | InstancedOGC3DTile | |
distanceFunction | function | |
getSiblings | function | |
level | Number | |
sceneZupToYup | Boolean | |
meshZupToYup | Boolean | |
geometricError | Number |
update()
To be called in the render loop or at regular intervals. launches tile downloading and loading in an orderly fashion.