Cesium使用WallGeometry、Primitive画wall

  DrawWallPrimitiveFun() {
      import("./data/WallPrimitiveData.json").then((res) => {
        let primitiveCollection = new Cesium.PrimitiveCollection();
        let wallInstance = new Cesium.GeometryInstance({
          geometry: new Cesium.WallGeometry({
            positions: Cesium.Cartesian3.fromDegreesArrayHeights(res.Data),
          }),
        });
        let wallAppearance = new Cesium.MaterialAppearance({
          // material: Cesium.Material.fromType("Checkerboard", {
          //   repeat: new Cesium.Cartesian2(20.0, 20.0),
          // }),
          material: new Cesium.Material({
            fabric: {
              type: "Color",
              uniforms: {
                color: Cesium.Color.YELLOW.withAlpha(1),
              },
            },
          }),
     

你可能感兴趣的:(Cesium,前端,服务器,javascript)