Include 'pwn' in generic point set readers

This commit is contained in:
Mael Rouxel-Labbé 2020-10-13 18:03:00 +02:00
parent ec71a79fdf
commit 13c221534d
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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<OutputIteratorValueType>(fname, output, np);
else if(ext == "off")
return read_OFF<OutputIteratorValueType>(fname, output, np);