我现在有个想法是 entities 放大一点完全覆盖掉3dtiles模型,但是polygon类型的好像没有放大倍数,各位大佬有什么好的建议吗
浏览器是chrome,下面是添加一个entity的代码,按照官网很基础的加载
this.tileset = new Cesium.Cesium3DTileset({
url: 'http://192.168.6.240:8898/cdn/LY3dtiles/tileset.json',
maximumNumberOfLoadedTiles:1000,
dynamicScreenSpaceError : true
})
viewer.scene.primitives.add(this.tileset)
viewer.entities.add({
id:23315,
name:'test',
polygon:{
hierarchy:Cesium.Cartesian3.fromDegreesArrayHeights([ 125.077874, 42.939885, 23 , 125.077557, 42.940028, 23 , 125.077942, 42.940494, 23 , 125.078256, 42.940352, 23 , 125.077874, 42.939885 ,23 ] ),
extrudedHeight: 0,
perPositionHeight: true,
stRotation: 1 ,
material: Cesium.Color.RED.withAlpha(1)
}
})