Search code examples
c++vectorcgalstd-pair

CGAL How to save std::vector<Point> points into .xyz file?


I'm new to C++ and I'm not familiar with vector and pair. I'm working on CGAL, and I want to save std::vector<Point> points into a .xyz file, but the provided example in CGAL doc uses different type std::pair<Point, Vector> in order to save. Could anyone please give me some clues?

I refer to this example [link] and I want to save after remove the outliers.

This is the example [link] of read and write in CGAL.


Solution

  • Poor me! I've just read the write_xyz_points.h. The function has already been created.