src/main/java/eu/digitisation/layout/FR10Page.java
private Polygon cover(Polygon points) {
        Polygon cover = new Polygon();
        for (int n = 0; n < points.npoints; ++n) {
            if (n % 2 == 0) {
                cover.addPoint(points.xpoints[n], points.ypoints[n]);
            } else {
                cover.addPoint(points.xpoints[n], points.ypoints[n - 1]);
            }
        }
        for (int n = points.npoints - 1; n >= 0; --n) {
            if (n % 2 == 1) {
                cover.addPoint(points.xpoints[n], points.ypoints[n]);
            } else {
                cover.addPoint(points.xpoints[n], points.ypoints[n + 1]);
            }
        }
        return cover;
    }
/**
     * Polygonal cover of a sequence of bounding boxes
     * @param points
     * @return 
     */
Polygonal cover of a sequence of bounding boxes
@param points
@return
Polygonal cover of a sequence of bounding boxes @param points @return
private Polygon cover(Polygon points) {
        Polygon cover = new Polygon();
        for (int n = 0; n < points.npoints; ++n) {
            if (n % 2 == 0) {
                cover.addPoint(points.xpoints[n], points.ypoints[n]);
            } else {
                cover.addPoint(points.xpoints[n], points.ypoints[n - 1]);
            }
        }
        for (int n = points.npoints - 1; n >= 0; --n) {
            if (n % 2 == 1) {
                cover.addPoint(points.xpoints[n], points.ypoints[n]);
            } else {
                cover.addPoint(points.xpoints[n], points.ypoints[n + 1]);
            }
        }
        return cover;
    }
private Polygon cover ( Polygon points ) { Polygon cover = new Polygon ( ) ; for ( int n = 0 ; n < points . npoints ; ++ n ) { if ( n % 2 == 0 ) { cover . addPoint ( points . xpoints [ n ] , points . ypoints [ n ] ) ; } else { cover . addPoint ( points . xpoints [ n ] , points . ypoints [ n - 1 ] ) ; } } for ( int n = points . npoints - 1 ; n >= 0 ; -- n ) { if ( n % 2 == 1 ) { cover . addPoint ( points . xpoints [ n ] , points . ypoints [ n ] ) ; } else { cover . addPoint ( points . xpoints [ n ] , points . ypoints [ n + 1 ] ) ; } } return cover ; }
Polygonal cover of a sequence of bounding boxes
 @param points
 @return
Polygonal cover of a sequence of bounding boxes @param points @return