v0.1.0: 初始工程骨架 — 7模块 40头文件 32源文件 17文档 Apache-2.0
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include "vde/core/polygon.h"
|
||||
#include <vector>
|
||||
|
||||
namespace vde::boolean {
|
||||
|
||||
enum class BooleanOp { Union, Intersection, Difference, SymDiff };
|
||||
|
||||
/// 2D polygon boolean operations (Vatti algorithm)
|
||||
/// Currently implemented via a simple edge walking approach for convex polygons
|
||||
std::vector<Polygon2D> boolean_2d(const Polygon2D& a, const Polygon2D& b, BooleanOp op);
|
||||
|
||||
} // namespace vde::boolean
|
||||
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include "vde/mesh/halfedge_mesh.h"
|
||||
|
||||
namespace vde::boolean {
|
||||
|
||||
enum class BooleanOp { Union, Intersection, Difference, SymDiff };
|
||||
|
||||
HalfedgeMesh mesh_boolean(const HalfedgeMesh& a, const HalfedgeMesh& b, BooleanOp op);
|
||||
|
||||
} // namespace vde::boolean
|
||||
Reference in New Issue
Block a user