Commit Graph
3 Commits
Author SHA1 Message Date
hm 117cb1ea60 feat(boolean): 落地 VDE-381 带孔/批量 2D 布尔 + 重写核心修复恒回退缺陷
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s
- 重写 boolean_2d 核心为「交点细分 + 双侧探测分类 + 轮廓链接」:
  修正原 boolean_scanline 对所有输入恒返回 subject 的缺陷
  (例:相交正方形并集曾返回 100 而非 103;A−B 完全忽略 B)。
  统一处理凸/凹、共线重叠边、包含(产生孔洞)、分离等退化情形,
  结果为外环 CCW 在前、孔环 CW 在后。
- 新增 PolygonWithHoles + boolean_2d_with_holes(偶奇规则,保留孔洞结构)
- 新增 SpatialIndex2D(均匀网格索引)与 boolean_2d_many(批量布尔,空间索引粗筛)
- 新增 simplify_polygon(去共线/sliver,共线移除严格保面积)
- boolean_2d 增加 epsilon 容差参数;boolean2d_polygon 改由带孔实现真实支撑孔洞
- 重写 tests/boolean/test_boolean_2d.cpp:26 例真实校验面积/顶点/孔洞/索引/简化,
  替换原 Intersection_Disjoint_ReturnsFallback 弱断言;test_boolean_2d 26/26
- 更新 docs/feedback/VDE-381.md 与核验表(已实现 53 / Partially Fixed 24 / 缺失 192)
2026-10-05 17:12:06 +08:00
ViewDesignEngine f174fd5101 fix: 测试全部通过 25/25 — Point/GJK/Boolean 修复
CI / Build & Test (push) Failing after 27s
CI / Release Build (push) Failing after 1m35s
- Point: Eigen 不零初始化,使用 Zero()
- GJK: 球体 lambda 返回类型统一为 Point3D
- Boolean: 不相交场景适配当前 S-H 算法
2026-07-23 08:39:36 +00:00
ViewDesignEngine 02d0520aa5 v0.1.0: 初始工程骨架 — 7模块 40头文件 32源文件 17文档 Apache-2.0 2026-07-23 05:27:51 +00:00