Cesium3DTileContent

new Cesium.Cesium3DTileContent()

Cesium3DTileset 中图元的内容。

此接口的派生类提供对图元中各个特征的访问。 通过 Cesium3DTile#content 访问派生对象。

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

Members

readonly batchTableByteLength : number

获取批处理表纹理和任何二进制 元数据属性(未在 geometryByteLength 或 texturesByteLength 中计算)所使用的内存量

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

返回具有给定 batchId 的特征的 Cesium3DTileFeature 对象。 此对象用于获取和修改特征的属性。

图元中的特征按 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.