test(brep): 注册 VDE-1227..1230 回归 + python 绑定兼容 + 变更日志/独立验证报告

- tests/brep/CMakeLists.txt: 注册 test_vde1227_hlr_feedback、test_vde1230_interference
- python/src/vde_assembly.cpp: interference_check 新增 InterferenceOptions 重载后
  &check_pair / &check_interference 裸取址产生歧义,改为显式旧签名函数指针;
  penetration_depth 增加 mesh_deflection 默认参后用 4 参 lambda 绑定,Python
  侧签名保持不变
- CHANGELOG [1.0.4]: VDE-1227..1230 修复摘要、验收数据与已知限制
- docs/feedback/verification-1227-1230.md: 独立验证报告(独立 build-verify
  重建 273/273 编译通过;自写探针 96/96 PASS;四个套件 14+19+15+18 全过;
  回归 42+8+16+19 全过;变更范围核对无越界文件)。唯一非阻塞项为
  test_advanced_drawing.HoleTableGroupsBySpec 预存 flaky(崩溃在未修改的
  auto_dimensioning.cpp,且该可执行文件不链接本次变更符号,判定与本分支无关)。
This commit is contained in:
hm
2026-10-25 15:20:04 +08:00
parent 7ab362f509
commit 3c992eb61c
4 changed files with 245 additions and 3 deletions
+18 -3
View File
@@ -196,7 +196,12 @@ Attributes:
+ ", conflicts=" + std::to_string(r.interfering_pairs) + ")";
});
assy.def("check_interference", &check_interference,
// VDE-1230: interference_check.h gained InterferenceOptions overloads, so a
// bare &check_interference / &check_pair is ambiguous; bind the legacy
// signatures explicitly (python bindings stay source-compatible).
InterferenceResult (*check_interference_legacy)(const Assembly&, bool) =
&check_interference;
assy.def("check_interference", check_interference_legacy,
py::arg("assembly"), py::arg("coarse_only") = false,
R"pbdoc(
Check for interference/collisions in the entire assembly.
@@ -217,7 +222,10 @@ Example:
... print(f"{c.part_a} collides with {c.part_b}, pen={c.penetration:.3f}")
)pbdoc");
assy.def("check_pair", &check_pair,
InterferencePair (*check_pair_legacy)(const BrepModel&, const BrepModel&,
const vde::core::Transform3D&,
const vde::core::Transform3D&) = &check_pair;
assy.def("check_pair", check_pair_legacy,
py::arg("model_a"), py::arg("model_b"),
py::arg("transform_a"), py::arg("transform_b"),
R"pbdoc(
@@ -231,7 +239,14 @@ Returns:
InterferencePair
)pbdoc");
assy.def("penetration_depth", &penetration_depth,
// VDE-1230: penetration_depth gained a trailing mesh_deflection default arg,
// so bind a 4-arg lambda to keep the Python signature unchanged.
auto penetration_depth_4arg =
[](const BrepModel& a, const BrepModel& b,
const vde::core::Transform3D& ta, const vde::core::Transform3D& tb) {
return penetration_depth(a, b, ta, tb);
};
assy.def("penetration_depth", penetration_depth_4arg,
py::arg("model_a"), py::arg("model_b"),
py::arg("transform_a"), py::arg("transform_b"),
R"pbdoc(