static TiledGeometry sliceIntoTiles(List<List<CoordinateSequence>> groups, double buffer, boolean area, int z,
    TileExtents.ForZoom extents) throws GeometryException {
    TiledGeometry result = new TiledGeometry(extents, buffer, z, area);
    EnumSet<Direction> wrapResult = result.sliceWorldCopy(groups, 0);
    if (wrapResult.contains(Direction.RIGHT)) {
      result.sliceWorldCopy(groups, -result.maxTilesAtThisZoom);
    }
    if (wrapResult.contains(Direction.LEFT)) {
      result.sliceWorldCopy(groups, result.maxTilesAtThisZoom);
    }
    return result;
  }
Returns the tiles that this geometry touches, and the contents of those tiles for this geometry.

@param groups  the list of linestrings or polygon rings extracted using {@link GeometryCoordinateSequences} in
               world web mercator coordinates where (0,0) is the northwest and (2^z,2^z) is the southeast corner of
               the planet
@param buffer  how far detail should be included beyond the edge of each tile (0=none, 1=a full tile width)
@param area    {@code true} if this is a polygon {@code false} if this is a linestring
@param z       zoom level
@param extents range of tile coordinates within the bounds of the map to generate
@return each tile this feature touches, and the points that appear on each
@throws GeometryException for a polygon that is invalid in a way that interferes with clipping
planetiler-core/src/main/java/com/onthegomap/planetiler/render/TiledGeometry.java