English中文

Cesium3DTile

new Cesium.Cesium3DTile(tileset, baseResource, header, parent)

中的一块瓷砖 A tile in a Cesium3DTileset。首次创建图块时,不会加载其内容;内容根据视图按需加载。 . When a tile is first created, its content is not loaded; the content is loaded on-demand when needed based on the view.

不要直接构造它,而是通过访问图块 Do not construct this directly, instead access tiles through Cesium3DTileset#tileVisible.

名称 Name 类型 Type 说明 Description
tileset Cesium3DTileset 瓷砖集 The tileset
baseResource Resource 图块集的基础资源 The base resource for the tileset
header object 磁贴的 JSON 标头 The JSON header for the tile
parent Cesium3DTile 新图块的父图块 The parent tile of the new tile

成员 Members

获取从图块的边界体积导出的边界球体。 Get the bounding sphere derived from the tile's bounding volume.
获取图块的子级。 Gets the tile's children.

readonly computedTransform : Matrix4

该图块的最终计算变换。 The final computed transform of this tile.
磁贴的内容。这表示实际图块的有效负载,而不是图块集 JSON 文件中内容的元数据。 The tile's content. This represents the actual tile's payload, not the content's metadata in the tileset JSON file.
内容过期并请求新内容的日期。 The date when the content expires and new content is requested.

expireDuration : number

磁贴内容准备就绪后,内容过期并请求新内容的时间(以秒为单位)。 The time in seconds after the tile's content is ready when the content expires and new content is requested.

readonly extras : object

返回 Returns the extras 此图块的图块集 JSON 中的属性,其中包含应用程序特定的元数据。退货 property in the tileset JSON for this tile, which contains application specific metadata. Returns undefined if extras 不存在。 does not exist.
另见: See:

readonly geometricError : number

如果渲染该图块而其子图块未渲染,则引入错误(以米为单位)。这用于计算屏幕空间误差,即以像素为单位测量的误差。 The error, in meters, introduced if this tile is rendered and its children are not. This is used to compute screen space error, i.e., the error measured in pixels.
获取磁贴的 I3S 节点。 Gets the I3S Node for the tile.
该图块的父级或 This tile's parent or undefined 如果这个图块是根。 if this tile is the root.

当图块的内容指向外部图块集 JSON 文件时,外部图块集的根图块的父级不是 When a tile's content points to an external tileset JSON file, the external tileset's root tile's parent is not undefined;相反,父级引用该图块(其内容指向外部图块集 JSON 文件),就像两个图块集已合并一样。 ; instead, the parent references the tile (with its content pointing to an external tileset JSON file) as if the two tilesets were merged.

包含此图块的图块集。 The tileset containing this tile.
该图块的局部变换。 The local transform of this tile.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.