ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
boolean_2d.h
浏览该文件的文档.
1 
11 #pragma once
12 #include "vde/core/polygon.h"
13 #include <vector>
14 
15 namespace vde::boolean {
16 using core::Point2D;
17 using core::Polygon2D;
18 
22 enum class BooleanOp {
23  Union,
24  Intersection,
25  Difference,
26  SymDiff
27 };
28 
57 std::vector<Polygon2D> boolean_2d(const Polygon2D& a, const Polygon2D& b, BooleanOp op);
58 
59 } // namespace vde::boolean
二维平面多边形
Definition: polygon.h:20
std::vector< Polygon2D > boolean_2d(const Polygon2D &a, const Polygon2D &b, BooleanOp op)
二维多边形布尔运算
BooleanOp
布尔运算类型
Definition: boolean_2d.h:22
foundation::Point2D Point2D
双精度二维点(重新导出)
Definition: point.h:29