Cesiumforue多边形裁剪

为什么地图通过CesiumPolygonRasterOverlay裁剪后,相机拉远,地图上被裁剪的缺口部分还是会有Cesium3DTileset的碰撞网格出现,想问怎么去除这个mesh网格

cesiumforue 2.11.0

Why after the map is clipped by CesiumPolygonRasterOverlay, when the camera is zoomed out, there is still a collision mesh of Cesium3DTileset in the clipped gap on the map? I want to ask how to remove this mesh

cesiumforue 2.11.0

Hi @dwbcxy886,

The polygon raster overlay works by discarding tiles when the entire tile isn’t needed. But for tiles that are partially inside the polygon and partially outside, the removal is done by setting the opacity mask in a material. The geometry itself is not modified. Unfortunately, there’s currently no way to modify the geometry with a polygon.


经过CesiumPolygonRasterOverlay组件裁剪后的图层,这个位置还有图层网格会接收碰撞

The layer clipped by the CesiumPolygonRasterOverlay component, there is also a layer grid at this position that will receive collision

Sorry @dwbcxy886, I don’t know what you mean.

没事,只是提下,如果能把这个网格一起裁剪掉就好了,因为这个网格会阻塞我对地图地下"actor"的射线检测