GeometryVisualizer

new Cesium.GeometryVisualizer(scene, entityCollection, primitives, groundPrimitives)

用于由 Primitive 实例表示的几何的通用可视化工具。
Name Type Default Description
scene Scene 将渲染基元的场景。
entityCollection EntityCollection 要可视化的实体集合。
primitives PrimitiveCollection scene.primitives optional 用于添加与实体相关的基元的集合
groundPrimitives PrimitiveCollection scene.groundPrimitives optional 用于添加与地面相关的基元的集合

Methods

Removes and destroys all primitives created by this instance.
如果此对象已被销毁则返回 true,否则返回 false。
Returns:
如果此对象已被销毁则返回 true,否则返回 false。
更新此可视化工具创建的所有基元,使其与给定时间的对应实体匹配。
Name Type Description
time JulianDate 要更新到的时间。
Returns:
如果可视化工具成功更新到提供的时间则返回 true, 如果可视化工具正在等待异步基元创建则返回 false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.