@@ -14,14 +14,37 @@ const _cameraPositionInTiles = /* @__PURE__ */ new Vector3();
1414const _frustumPlanes = /* @__PURE__ */ new Array ( 6 ) . fill ( null ) . map ( ( ) => new Plane ( 0 , 0 , 0 , 0 ) ) ;
1515
1616// TODO: implementation does not support left handed coordinate system
17+ /**
18+ * @classdesc
19+ * Babylon.js implementation of the 3D Tiles renderer. Manages tile loading, caching, traversal,
20+ * and scene management using the Babylon.js scene graph and camera APIs. Dispatches all events
21+ * defined by TilesRendererBase via Babylon.js Observables.
22+ * @augments TilesRendererBase
23+ */
1724export class TilesRenderer extends TilesRendererBase {
1825
26+ /**
27+ * @param {string } url - URL of the root tileset JSON.
28+ * @param {Scene } scene - The Babylon.js scene to render tiles into.
29+ */
1930 constructor ( url , scene ) {
2031
2132 super ( url ) ;
2233
34+ /**
35+ * The Babylon.js scene tiles are rendered into.
36+ * @type {Scene }
37+ */
2338 this . scene = scene ;
39+ /**
40+ * Root node that all loaded tile scenes are parented to.
41+ * @type {TransformNode }
42+ */
2443 this . group = new TransformNode ( 'tiles-root' , scene ) ;
44+ /**
45+ * Whether to enable collision checking on loaded tile meshes.
46+ * @type {boolean }
47+ */
2548 this . checkCollisions = false ;
2649 this . _upRotationMatrix = Matrix . Identity ( ) ;
2750
@@ -336,6 +359,10 @@ export class TilesRenderer extends TilesRendererBase {
336359
337360 }
338361
362+ /**
363+ * Disposes the renderer, releasing all loaded tile content and the root transform node.
364+ * @returns {void }
365+ */
339366 dispose ( ) {
340367
341368 super . dispose ( ) ;
0 commit comments