DebugModelMatrixPrimitive

new Cesium.DebugModelMatrixPrimitive(options)

绘制由转换为 world 的矩阵定义的参考系的轴 坐标,即地球的 WGS84 坐标。 最突出的例子是 一个基元 modelMatrix

X 轴为红色;Y 为绿色;Z 为蓝色。

这仅用于调试;它未针对生产使用进行优化。

Name Type Description
options object optional 对象,具有以下属性:
Name Type Default Description
length number 10000000.0 optional 轴的长度,以米为单位。
width number 2.0 optional 宽度轴(以像素为单位)。
modelMatrix Matrix4 Matrix4.IDENTITY optional 定义要可视化的参考系(即原点加轴)的 4x4 矩阵。
show boolean true optional 决定是否显示此基元。
id object optional 使用 Scene#pick 选取实例时返回的用户定义对象
Example:
primitives.add(new Cesium.DebugModelMatrixPrimitive({
  modelMatrix : primitive.modelMatrix,  // primitive to debug
  length : 100000.0,
  width : 10.0
}));

Members

选取基元时返回的 User-defined 值。
Default Value: undefined
See:
轴的长度(以米为单位)。
Default Value: 10000000.0
定义要可视化的参考帧(即原点加轴)的 4x4 矩阵。
Default Value: Matrix4.IDENTITY
确定是否显示此基元。
Default Value: true
轴的宽度(以像素为单位)。
Default Value: 2.0

Methods

销毁此对象持有的 WebGL 资源。 销毁对象允许确定性 释放 WebGL 资源,而不是依赖垃圾回收器来销毁这个对象。

一旦对象被销毁,就不应该使用它;调用 isDestroyed 将导致 DeveloperError 异常。因此 将返回值 (undefined) 分配给对象,如示例中所示。

Throws:
Example:
p = p && p.destroy();
See:
如果此对象已销毁,则返回 true;否则为 false。

如果此对象已销毁,则不应使用;调用 isDestroyed 将导致 DeveloperError 异常。

Returns:
如果此对象被销毁,则为 true;否则为 false
See:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.