其他分享
首页 > 其他分享> > cesium中的四种拾取pick

cesium中的四种拾取pick

作者:互联网

cesium中有好多种物体拾取,在这里记录一下,方便查阅。

1、viewer.scene.pick(windowPosition);

  官网介绍:

Returns an object with a `primitive` property that contains the first (top) primitive in the scene at a particular window coordinate or undefined if nothing is at the location. 
Other properties may potentially be set depending on the type of primitive and may be used to further identify the picked object. When a feature of a 3D Tiles tileset is picked, pick returns a Cesium3DTileFeature object.
返回scene中指定位置的顶端的primitive属性的的一个对象。
适用于选取3D tiles,改变3Dtiles的属性,比如颜色等。

标签:primitive,object,scene,拾取,picked,pick,cesium,3D
来源: https://www.cnblogs.com/airduce/p/14663927.html