Improve CLI

This commit is contained in:
jaseg 2025-12-17 23:01:40 +01:00
parent 1140c5bca3
commit 6666e665e2
3 changed files with 70 additions and 57 deletions

View file

@ -52,7 +52,8 @@ int main()
}
if (!poly.is_counterclockwise_oriented()) {
poly.reverse_orientation();
std::cerr << "Error: Polygon must be counter-clockwise" << std::endl;
return EXIT_FAILURE;
}
SsPtr ss = CGAL::create_interior_straight_skeleton_2(poly.vertices_begin(), poly.vertices_end(), K());