通过一点绘制生成了一个圆,在webgl三维场景中能正常显示,想通过这个圆进行空间查询,但获取圆的geometry总是undefined,代码如下
//创建缓冲区并显示
buffer = viewer.entities.add({
position: querycenter,//Cesium.Cartesian3.fromDegrees(126.5879, 45.759673, 200)
name: 'QueryBuffer',
ellipse: {
semiMinorAxis: 200.0,
semiMajorAxis: 200.0,
height: point.height,
material: Cesium.Color.DARKORANGE.withAlpha(0.8),
outline: false
}
});
//获取圆的geometry
var geometry = Cesium.EllipseGeometry.createGeometry(buffer.ellipse);