Cesium3DTileContent

new Cesium.Cesium3DTileContent()

Cesium3DTileset 中瓦片的内容。

此接口的派生类提供对磁贴中各个功能的访问。 通过 Cesium3DTile#content 访问派生对象。

此类型描述接口,不打算直接实例化。

Members

readonly batchTableByteLength : number

获取批处理表纹理和任何二进制文件使用的内存量 geometryByteLength 中未考虑元数据属性,或者 textures字节长度

readonly featuresLength : number

获取瓦片中的要素数。

readonly geometryByteLength : number

获取图块的几何内存(以字节为单位)。

readonly innerContents : Array

获取包含其他内容(如复合磁贴)的内容的 Cesium3DTileContent 对象的数组。内部内容可能又具有内部内容,例如包含复合切片的复合切片。
See:

readonly pointsLength : number

获取瓦片中的点数。

仅适用于包含点云内容的瓦片。这与 Cesium3DTileContent#featuresLength 不同,后者 等于 BATCH_ID 特征表语义区分的点组数。

See:
当磁贴的内容准备好呈现时,返回 true;否则为 false

readonly texturesByteLength : number

获取平铺的纹理内存(以字节为单位)。
获取包含此内容的磁贴。
获取此图块的图块集。

readonly trianglesLength : number

获取平铺中的三角形数。
获取磁贴内容的 URL。

Methods

返回 Cesium3DTileFeature 对象的 给定 batchId。 此对象用于获取和修改 功能的属性。

瓦片中的要素按 batchId 排序,batchId 是用于从批处理表中检索其元数据的索引。

Name Type Description
batchId number 特征的 batchId。
Returns:
对应的 Cesium3DTileFeature 对象。
Throws:
See:

hasProperty(batchId, name)boolean

返回功能是否具有此属性。
Name Type Description
batchId number 特征的 batchId。
name string 属性的区分大小写的名称。
Returns:
true,如果特征具有此属性;否则为 false
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.