Skip to content

Commit

Permalink
And another one
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Oct 10, 2024
1 parent 1d6b81d commit 98d649f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <CGAL/Random.h>
#include <CGAL/point_generators_2.h>
#include <CGAL/random_polygon_2.h>
#include <CGAL/IO/helpers.h>
#include <CGAL/enum.h>

#include <fstream>
Expand Down Expand Up @@ -110,8 +109,8 @@ template <typename PolygonWithHoles>
bool read_input_polygon(const char* filename,
PolygonWithHoles& p)
{
std::string ext = CGAL::IO::internal::get_file_extension(filename);
if(ext == "dat")
std::string ext = std::filesystem::path(filename).extension().string();
if(ext == ".dat")
{
return read_dat_polygon(filename, p);
}
Expand Down

0 comments on commit 98d649f

Please sign in to comment.