首页 / 浏览问题 / 三维GIS / 问题详情
polygon贴模型问题
3EXP 2022年09月30日

贴模型后polygon在地形上也显示了

1个回答

您好,我们把polygon贴在S3M模型表面是通过ClassificationType.S3M_TILE来设置的

比如:viewer.entities.add({
                      id: "test",
                      polygon: {
                      hierarchy: new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray([112, 40, 112.01, 40, 112.01, 40.01, 112, 40.01])),
                      height:300,
                      material: new Cesium.ImageMaterialProperty ({
                                     image:"data/building2.png"               
                      }),
                      classificationType: Cesium.ClassificationType.S3M_TILE // 贴在S3M模型表面
                     }
          });

您可以参考一下我们的相关博客文章和官网AIP添加polygon实体时的相关参数:

https://blog.csdn.net/supermapsupport/article/details/90720728                                                                                                      http://support.supermap.com.cn:8090/webgl/web/apis/3dwebgl.html

或者方便把您添加polygon的完整代码发一下吗?

785EXP 2022年09月30日
...