diff --git a/Kinetic_space_partition/include/CGAL/KSP/debug.h b/Kinetic_space_partition/include/CGAL/KSP/debug.h index 6177e94f929..2b750a0231a 100644 --- a/Kinetic_space_partition/include/CGAL/KSP/debug.h +++ b/Kinetic_space_partition/include/CGAL/KSP/debug.h @@ -40,7 +40,7 @@ namespace CGAL { namespace KSP_3 { namespace internal { -const std::tuple +inline const std::tuple get_idx_color(std::size_t idx) { CGAL::Random rand(static_cast(idx)); @@ -50,7 +50,7 @@ get_idx_color(std::size_t idx) { static_cast(rand.get_int(32, 192))); } -CGAL::IO::Color get_color(std::size_t idx) { +inline CGAL::IO::Color get_color(std::size_t idx) { CGAL::Random rand(static_cast(idx)); return CGAL::IO::Color(rand.get_int(32, 192), rand.get_int(32, 192), rand.get_int(32, 192)); } @@ -929,7 +929,7 @@ void dump_polygon(const std::vector& pts, const std::string saver.export_polygon_soup_3(pts2, filename); } -void dump_polygon(const std::vector& pts, const std::string& filename) { +inline void dump_polygon(const std::vector& pts, const std::string& filename) { Saver saver; std::vector > pts2; pts2.push_back(pts); @@ -937,7 +937,7 @@ void dump_polygon(const std::vector& pts, const std::strin saver.export_polygon_soup_3(pts2, filename); } -void dump_polygona(const std::vector& pts, const std::string& filename) { +inline void dump_polygona(const std::vector& pts, const std::string& filename) { Saver saver; std::vector > pts2; pts2.push_back(pts); @@ -945,30 +945,31 @@ void dump_polygona(const std::vector& pts, const std::stri saver.export_polygon_soup_3(pts2, filename); } -void dump_polygons(const std::vector >& pts, const std::string& filename) { - Saver saver; - - saver.export_polygon_soup_3(pts, filename); -} -void dump_polygons(const std::vector > >& pts, const std::string& filename) { +inline void dump_polygons(const std::vector >& pts, const std::string& filename) { Saver saver; saver.export_polygon_soup_3(pts, filename); } -void dump_indexed_triangles(const std::vector& pts, const std::vector& tris, const std::string& filename) { +inline void dump_polygons(const std::vector > >& pts, const std::string& filename) { + Saver saver; + + saver.export_polygon_soup_3(pts, filename); +} + +inline void dump_indexed_triangles(const std::vector& pts, const std::vector& tris, const std::string& filename) { Saver saver; saver.export_indexed_triangles_3(pts, tris, filename); } -void dump_indexed_polygons(const std::vector& pts, const std::vector >& polys, const std::string& filename) { +inline void dump_indexed_polygons(const std::vector& pts, const std::vector >& polys, const std::string& filename) { Saver saver; saver.export_indexed_polygons_3(pts, polys, filename); } - void dump_polygons(const std::vector >& pts, const std::vector& colors, const std::string& filename) { +inline void dump_polygons(const std::vector >& pts, const std::vector& colors, const std::string& filename) { Saver saver; saver.export_polygon_soup_3(pts, colors, filename); @@ -1013,7 +1014,7 @@ void dump_polygons( saver.export_polygon_soup_3(polygons, name); } -void dump_points(const std::vector& pts, const std::vector& normals, const std::vector& colors, const std::string& filename) { +inline void dump_points(const std::vector& pts, const std::vector& normals, const std::vector& colors, const std::string& filename) { Saver saver; saver.export_points_3(pts, normals, colors, filename); }