mirror of https://github.com/CGAL/cgal
Include 'pwn' in generic point set readers
This commit is contained in:
parent
ec71a79fdf
commit
13c221534d
|
|
@ -129,7 +129,7 @@ bool read_point_set(const std::string& fname,
|
||||||
{
|
{
|
||||||
const std::string ext = IO::internal::get_file_extension(fname);
|
const std::string ext = IO::internal::get_file_extension(fname);
|
||||||
|
|
||||||
if(ext == "xyz")
|
if(ext == "xyz" || ext == "pwn")
|
||||||
return read_XYZ(fname, ps);
|
return read_XYZ(fname, ps);
|
||||||
else if(ext == "off")
|
else if(ext == "off")
|
||||||
return read_OFF(fname, ps);
|
return read_OFF(fname, ps);
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ bool read_points(const std::string& fname,
|
||||||
{
|
{
|
||||||
const std::string ext = IO::internal::get_file_extension(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);
|
return read_XYZ<OutputIteratorValueType>(fname, output, np);
|
||||||
else if(ext == "off")
|
else if(ext == "off")
|
||||||
return read_OFF<OutputIteratorValueType>(fname, output, np);
|
return read_OFF<OutputIteratorValueType>(fname, output, np);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue