From 13c221534deda4cde4f37a7d3a94f1cfa6a10bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 13 Oct 2020 18:03:00 +0200 Subject: [PATCH] Include 'pwn' in generic point set readers --- Point_set_3/include/CGAL/Point_set_3/IO.h | 2 +- Point_set_processing_3/include/CGAL/IO/read_points.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Point_set_3/include/CGAL/Point_set_3/IO.h b/Point_set_3/include/CGAL/Point_set_3/IO.h index 12263f83811..b621c34f211 100644 --- a/Point_set_3/include/CGAL/Point_set_3/IO.h +++ b/Point_set_3/include/CGAL/Point_set_3/IO.h @@ -129,7 +129,7 @@ bool read_point_set(const std::string& fname, { const std::string ext = IO::internal::get_file_extension(fname); - if(ext == "xyz") + if(ext == "xyz" || ext == "pwn") return read_XYZ(fname, ps); else if(ext == "off") return read_OFF(fname, ps); diff --git a/Point_set_processing_3/include/CGAL/IO/read_points.h b/Point_set_processing_3/include/CGAL/IO/read_points.h index f4f5fd4e480..25b0b84f87d 100644 --- a/Point_set_processing_3/include/CGAL/IO/read_points.h +++ b/Point_set_processing_3/include/CGAL/IO/read_points.h @@ -90,7 +90,7 @@ bool read_points(const std::string& fname, { const std::string ext = IO::internal::get_file_extension(fname); - if(ext == "xyz") + if(ext == "xyz" || "pwn") return read_XYZ(fname, output, np); else if(ext == "off") return read_OFF(fname, output, np);