HoleDetection/util.hpp
/**
 * @brief Write a point cloud to disk. The format followed is same as 
 * the one for the ReadIn function.
 *
 * @param pc   A shared pointer to the point cloud that is to be written
 * @param path Path for the target file
*/
@brief Write a point cloud to disk. The format followed is same as
the one for the ReadIn function.

@param pc   A shared pointer to the point cloud that is to be written
@param path Path for the target file
@brief Write a point cloud to disk . The format followed is same as the one for the ReadIn function . @param pc A shared pointer to the point cloud that is to be written @param path Path for the target file
void WriteOut(PCRef pc, const std::string& path)
{
    std::ofstream output(path);
    for (auto p : pc->points)
    {
        output << p.x << " " << p.y << " " << p.z << "\n";
    }
}
void WriteOut ( PCRef pc , const std :: string & path ) { std :: ofstream output ( path ) ; for ( auto p : pc -> points ) { output << p . x << " " << p . y << " " << p . z << " \n " ; } }
@brief Write a point cloud to disk.
@brief Write a point cloud to disk .