#include #include "vde/boolean/boolean_2d.h" int main() { using namespace vde::boolean; Polygon2D a({{0,0},{3,0},{3,3},{0,3}}); Polygon2D b({{1,1},{4,1},{4,4},{1,4}}); auto result = boolean_2d(a, b, BooleanOp::Intersection); std::cout << "Intersection result polygons: " << result.size() << "\n"; if (!result.empty()) std::cout << "Result vertices: " << result[0].size() << "\n"; return 0; }