GltfGpmLocal

存储了 Ground-Space Indirect 实现的 GPM 元数据 本地(即瓦片和/或叶节点)。 这反映了 NGA_gpm_local glTF 扩展。加载包含此扩展的模型时, 则可以通过调用 ``` const gltfGpmLocal = model.getExtension("NGA_gpm_local"); ``` 存储类型决定了是否存在可选属性:
  • 当存储类型为 'StorageType.Indirect' 时,则 'anchorPointsIndirect' 和 'intraTileCorrelationGroups' 存在。
  • 当存储类型为 'StorageType.Direct' 时,则 存在 'anchorPointsDirect' 和 'covarianceDirect'。
Name Type Description
options GltfGpmLocal.ConstructorOptions 描述初始化选项的对象
Experimental

此功能不是最终的,在没有 Cesium 的标准弃用政策的情况下可能会发生变化。

Members

存储的直接锚点数组

readonly anchorPointsIndirect : Array.<AnchorPointIndirect>|undefined

存储的间接锚点数组
锚点参数的完全协方差

readonly intraTileCorrelationGroups : Array.<CorrelationGroup>|undefined

使用相同的关联建模标识参数的元数据,以及 关联的相关参数
指定协方差存储是间接存储还是直接存储。

Type Definitions

Cesium.GltfGpmLocal.ConstructorOptions

GltfGpmLocal 构造函数的初始化选项
Properties:
Name Type Attributes Description
storageType string 存储类型。 这必须是 'StorageType' 常量之一,即 'Direct' 或 'Indirect'。
anchorPointsIndirect Array.<AnchorPointIndirect> | undefined <optional>
间接锚点。 当且仅当存储类型为 'Indirect' 时,必须存在此项。
intraTileCorrelationGroups Array.<CorrelationGroup> | undefined <optional>
图块内相关组。 当且仅当存储类型为 'Indirect' 时,必须存在此项。
anchorPointsDirect Array.<AnchorPointDirect> | undefined <optional>
直接锚点。 当且仅当存储类型为 'Direct' 时,必须存在此项。
covarianceDirect Matrix3 | undefined <optional>
锚点参数的协方差。 当且仅当存储类型为 'Direct' 时,必须存在此项。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.