# Water

创建水面效果

let polygon = new Cesium.PolygonGeometry({
  vertexFormat: Cesium.VertexFormat.ALL,
  polygonHierarchy: new Cesium.PolygonHierarchy(
    Cesium.Cartesian3.fromDegreesArrayHeights(polygonData)
  ),
  perPositionHeight: true,
});
let geometry = Cesium.PolygonGeometry.createGeometry(polygon);
let water = new GeowayGlobe.Water({ viewer, geometry });
waterAreas.push(water);
1
2
3
4
5
6
7
8
9
10

# Water options 构造属性

属性 说明 类型 默认值
viewer 地球实例 Object viewer
geometry 具有形成顶点和可选索引数据的属性的几何图形 Object Null