Код: Выделить всё
#include
#include
#include
#include
#include
using Kernel = CGAL::Simple_cartesian;
using PolygonTraits = CGAL::Gps_circle_segment_traits_2;
using Polygon = CGAL::General_polygon_2
;
int main()
{
Polygon pgn;
std::ifstream fs("abc");
fs >> pgn; //
Подробнее здесь: [url]https://stackoverflow.com/questions/73349104/how-to-import-cgal-2d-general-polygon-from-file[/url]