def batch_points(points, batch_size):
    """Batch the point structure so as to split the postprocessing phase

    Parameters
    ----------
    points : np.array
        Full point structure
    batch_size : int
        Number of points to consider in each subsample

    Yields
    ------
    np.array
        Point subsample
    """
    for value in range(0, points.shape[0], batch_size):
        yield points[value:value + batch_size]
