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

移除并销毁此实例创建的所有基本体。

isDestroyed()Boolean

如果此对象已销毁,则返回true;否则返回false。
Returns:
如果此对象被销毁,则为True;否则为false。

update(time)Boolean

更新此可视化工具创建的所有基元,使其与 给定时间的实体对应方。
Name Type Description
time JulianDate 更新到的时间。
Returns:
如果可视化工具成功更新到提供的时间,则为True, 如果可视化工具正在等待创建异步原语,则返回false。