code: private static Double compute3DArea(Polygon geometry) {
          DelaunayData delaunayData = new DelaunayData();
          delaunayData.put(geometry, DelaunayData.MODE.TESSELLATION);
          // Do triangulation
          delaunayData.triangulate();
          return delaunayData.get3DArea();
      }
docs: Compute the 3D area of a polygon
  
  @param geometry
  @return