#pragma once #ifndef AFX_EXT_CLASS #define AFX_EXT_CLASS Q_DECL_IMPORT #endif #include #include using std::vector; using std::set; #include "InterfaceElements.h" /*@file: CPolygonOperation.h * @desc: 用于多边形之间的运算,交并补等 * @date: 2024.7.24 */ class AFX_EXT_CLASS CPolygonOperation { public: CPolygonOperation(void); public: //对输入一系列边界进行挖空处理,生成 XOR多边形, srcPgns = 所有的边界和孔洞 static int DigHoles(vector& srcPgns, vector& dstPgns); };