I now have 3D Tiles of the pipe network. I want to determine whether each pipe, i.e. feature, is in the current field of view. Is there any good way to do this?
getViewExtend() {
let params = {};
let extend = viewer.camera.computeViewRectangle();
//3D获取方式
params.maxx = Cesium.Math.toDegrees(extend.east);
params.maxy = Cesium.Math.toDegrees(extend.north);
params.minx = Cesium.Math.toDegrees(extend.west);
params.miny = Cesium.Math.toDegrees(extend.south);
return params;
};
[quote=“shijian0799, post:2, topic:37365, full:true”]
getViewExtend() {
let params = {};
let extend = viewer.camera.computeViewRectangle();
//3D获取方式
params.maxx = Cesium.Math.toDegrees(extend.east);
params.maxy = Cesium.Math.toDegrees(extend.north);
params.minx = Cesium.Math.toDegrees(extend.west);
params.miny = Cesium.Math.toDegrees(extend.south);
return params;
};
[/quote]Thanks!This is the rectangular area of the camera’s view, but the feature has no boundingVolumn. How can I tell whether it is in the camera’s view?