GltfGpmLocal

存储在本地(即瓦片和/或叶节点)的地面-空间间接实现的 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.