code: public PolyhedralSurface toPolyhedralSurfaceWithOptions(
              MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM) {
  
          PolyhedralSurface polyhedralSurface = new PolyhedralSurface(hasZ, hasM);
  
          for (PolygonOptions mapPolygon : multiPolygonOptions
                  .getPolygonOptions()) {
              Polygon polygon = toPolygon(mapPolygon);
              polyhedralSurface.addPolygon(polygon);
          }
  
          return polyhedralSurface;
      }
docs: Convert a {@link MultiPolygonOptions} to a {@link PolyhedralSurface}
  
  @param multiPolygonOptions multi polygon options
  @param hasZ                has z flag
  @param hasM                has m flag
  @return polyhedral surface