Skip to content

Commit

Permalink
PMP/soup_autorefinement.cpp: Make sure we can read the file before co…
Browse files Browse the repository at this point in the history
…ntinuing (#7974)
  • Loading branch information
sloriot authored Jan 19, 2024
2 parents 722e382 + d4a3612 commit fc66579
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ int main(int argc, char** argv)

std::vector<Point> input_points;
std::vector<boost::container::small_vector<std::size_t, 3>> input_triangles;
CGAL::IO::read_polygon_soup(filename, input_points, input_triangles);
if (!CGAL::IO::read_polygon_soup(filename, input_points, input_triangles))
{
std::cerr << "Cannot read " << filename << "\n";
return 1;
}
PMP::repair_polygon_soup(input_points, input_triangles);
PMP::triangulate_polygons(input_points, input_triangles);

Expand Down

0 comments on commit fc66579

Please sign in to comment.