17 Commits
Author SHA1 Message Date
hm 9520a60ccc fix(core): clear product build warnings and flange example bolt placement; update audit report 2026-10-31 13:53:05 +08:00
hm 0e8e5827bf fix(VDE-1250): 宿主升级阻塞热修 — 嵌入式导出/Eigen、MSVC 警告、render mesh 回归、n42 display 挂起、线框/save-load 响应(1.0.70)
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
### A. 编译/集成
- 修复宿主 add_subdirectory(VDE)+VDE_INSTALL_SDK=ON 时 install(EXPORT) 引用宿主非导出 _vd_eigen3 的 Generate 失败:
  VDE 自有 IMPORTED INTERFACE vde_eigen3 + vde-kernelConfig 在 find_dependency(Eigen3) 后重建;
- MSVC /W4 /WX:plugins/** 与 examples/** 目录级 /WX- + _CRT_SECURE_NO_WARNINGS;vde_capi_io.cpp C4190、mesh_repair.cpp C4805 修正;
- 验证:宿主仿真修复前失败→修复后 configure/build(320 targets)/install/run HOST_EMBED_OK faces=6 volume=24;
  kernel consumer KERNEL_CONSUMER_PASS faces=6 volume=60;MinGW 272/272 PASS;MSVC 待 CI;docs cross-platform §9;

### B. getRenderMesh 对解析体 false + n42 display 挂起
- 根因1:解析体 display mesh degenerate_triangles>0(Sphere patch 极点塌缩三角形被过滤但计入诊断)→ 宿主门禁/render false;
  修复为极点退化侧零面积单元直接跳过;box/圆柱/球/圆角盒/box+hole 全部 degenerate=0/failed=0/diagnostic 空;
- 根因2:n42 display/rebuildall 平面带孔盖共形 CDT 约束点 ≈ 孔数×孔圆采样点数,大 pattern 近平方且每事件重算;
  修复:build_display_shared_edges 按体面数自适应放粗共享采样角度容差(F>200 ×2、F>800 ×3);
  F=582 display 2587→534ms、rebuild 1364→600ms、wire 47ms;F=262 202/167/4ms;
- 新增 test_vde1250_render 2/2(解析体 render/display/LOD/legacy 矩阵 + n42 多特征链预算);

### C. 线框洪水/save→load/预算 + VDE-1250 响应
- 线框语义核实:DisplayMesh 无边集合;B-Rep 边线唯一入口 build_wireframe/vde_body_to_wireframe(_ex/_opt2),
  tight=opt2+include_segment_info=0;实测圆角盒 tight 8,064B/full 15,840B、box+16孔 56,480/114,512B;display open_edge 全 0;
  宿主 n60 409KB 与 display 6396 tris 全部三角边 ≈537KB 同量级 → 判宿主从三角网格提边,应切 B-Rep 线框入口;
- save→load:新增测试 2/2,5 种体 × 3 种 load 路径后 F/E/V/body_volume/to_mesh/is_valid 全部一致 → VDE 侧未复现 vol=0;
  文档附 7 步宿主排查清单;
- display 三角预算实测表(Draft/Normal/High)与宿主分档建议;VDE-1250 文档 Status→partially fixed + 内核侧响应章节;
- 新增 test_vde1250_wireframe_brep_edges 3/3、test_vde1250_save_load_volume 2/2、test_vde1250_display_budget 2/2;
- display_mesh.h wireframe_payload_bytes 注释 24B→32B/段;docs/reference/49 §11;

### 工程
- 版本 1.0.70(CMake/version.h/test_version/README/docs index/module-manual);
- 全量构建 0 error(405 targets);全量 ctest 7499 注册、7404/7404 PASS(0 failed,25 skipped,192.54s)。
2026-10-28 23:05:56 +08:00
hm 163d0c47e6 feat: P1.x 内核对齐 + P2-1 vde_cae + P2-2 插件扩展点 + VDE-1249 三阻塞修复(1.0.47)
### P1.x 内核对齐(P1 遗留收口)
- 原生 .vde 序列化(serializer/vde_format/vde_text)迁入内核 vde_brep;C API 序列化回迁 vde_kernel_capi;
  PMI/MBD 拆为内核数据模型(vde_brep)+ 3D-PDF 导出(vde_io/pmi_export.cpp),消除 kernel→io 反向依赖;
- make_geometry_host_services() 迁入内核 vde_brep,kernel-only 下 PluginManager+宿主服务可用;
- kernel-only 约 40 个测试 target + 4 个 examples 门控;六业务 OFF 的 2 个测试 target 门控;
- vde_version() 返回 0.5.0 既有缺陷修复;kernel SDK consumer 实测 1.0.47;

### P2-1 vde_cae 官方模块
- include/vde/cae/*、src/cae/*、tests/cae/*;旧路径转发头兼容;VDE_BUILD_CAE 开关;
- vde_io 移除 fea_mesh/fluid_domain;ctest 用例数保持(95 项 CAE 测试);CAE=OFF 构建 937/937;

### P2-2 插件 ABI 1.2:CAE solver / CAM strategy 扩展点
- VdeCaeSolverPlugin/VdeCamStrategyPlugin + Registration 尾部扩展(旧插件兼容);
- PluginManager cae_solvers()/cam_strategies()/solve_cae()/invoke_cam(),加载校验/失败隔离;
- plugins/sample_cae、sample_cam_post、abi11_compat、external/{runner,sample_stl_converter};
- docs/design/vde-service-protocol.md 进程外服务协议草案;test_plugin_extensions 9/9;

### VDE-1249 三阻塞修复
- fix1 共享边采样性能悬崖:sagitta 自适应段数 + 自由曲面证据触发 + fast planar loop 256 + IncrementalMesher 复用 mesh_face_diag;
  box+16 孔 legacy 3.3-3.6s→69.5ms、rebuild 4095→103ms;box+25 孔 5.1s→190.9ms;n42 链 ≤222ms;open=0/面积体积正确;
- fix2 fillet/blend 破损体护栏(fillet_edges_checked:watertight/dangling 护栏 + heal 重试 + 显式失败/诊断;
  静默 no-op success → 显式失败)+ delete_face_with_heal/fill_hole 边环重排(26 面盒 0/26→6/6,box 2/6→6/6);
- fix3 wireframe tight payload:WireframeOptions.include_segment_info + C API VdeWireframeOptions 尾扩展 +
  vde_body_to_wireframe_opt2(旧 ABI 安全);tight≈49-61% full(与 1.0.12 旧风格差 4B/段);

### 工程
- 修复 .gitignore `*.txt` 误伤:`!CMakeLists.txt`,把 plugins/**、tools/、tests/plugin、tests/cae 等漏入库的
  CMakeLists.txt 纳入版本库(保证干净 checkout 可构建);
- 版本 1.0.47(CMake/version.h/test_version/README/docs index/module-manual 同步);

验证:全量构建 0 error(334 targets);全量 ctest 7395 注册、7300/7300 PASS(0 failed,24 skipped,194.39s);
kernel-only(-DVDE_BUILD_IO=OFF + BUILD_TESTS=ON)全量构建 0 failed、plugin 30/12 + capi_split 7 全绿;
六业务 OFF 全量测试构建 0 failed;CAE 95/95;插件 ctest 61/61;VDE-1249 repro 前后数字见 CHANGELOG。
2026-10-28 16:32:01 +08:00
茂之钳 a73c5e8954 fix(v1.0.1): VDE-002 submodule path + VDE-006 cycle dep + VDE-007/008/009 API fixes
CI / Build & Test (push) Failing after 1m31s
CI / Release Build (push) Failing after 32s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
VDE-002 (High): Fix submodule include path
- All target_include_directories: CMAKE_SOURCE_DIR → BUILD_INTERFACE
- Works as both standalone project and add_subdirectory()

VDE-006 (High): Break vde_mesh ↔ vde_brep circular dependency
- Move mesh-dependent code from brep to mesh module
- vde_brep no longer links vde_mesh

VDE-007 (Low): Add mirror() and mirror_about_plane() to transform.h

VDE-008 (Low): Add convenience accessors to StlTriangle (.x()/.y()/.z())

VDE-009 (Medium): Full Doxygen docs for C API + examples/capi/basic_usage.cpp

Pending: VDE-001/003/004/005/010 GCC compatibility (agent still running)
2026-07-27 22:29:06 +08:00
茂之钳 12db7d3e5a feat(v3.5): perf caching + measure + flange/gear + feature tree + assembly constraints
CI / Build & Test (push) Failing after 1m31s
CI / Release Build (push) Failing after 31s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
2026-07-24 14:02:24 +00:00
茂之钳 bb5149f68f fix: re-enable 3d_print example after MC fix
CI / Build & Test (push) Failing after 31s
CI / Release Build (push) Failing after 42s
2026-07-24 10:52:46 +00:00
茂之钳 251346bfce fix: disable 3d_print example (MC SEGFAULT), track as known issue
CI / Build & Test (push) Failing after 25s
CI / Release Build (push) Failing after 37s
2026-07-24 10:46:34 +00:00
茂之钳 45e4111ec7 fix: restore compute_volume function signature in 3d_print
CI / Build & Test (push) Failing after 25s
CI / Release Build (push) Failing after 32s
2026-07-24 10:40:26 +00:00
茂之钳 583ff3ae2e fix: remove undefined compute_volume from 3d_print example
CI / Build & Test (push) Failing after 31s
CI / Release Build (push) Failing after 36s
2026-07-24 10:37:31 +00:00
茂之钳 1cca3edd21 fix: reduce 3d_print res to 30 to avoid OOM
CI / Build & Test (push) Failing after 34s
CI / Release Build (push) Failing after 29s
2026-07-24 10:35:40 +00:00
茂之钳 b7af37f7ff fix: reduce 3d_print resolution 80→40 to avoid OOM
CI / Build & Test (push) Failing after 31s
CI / Release Build (push) Failing after 30s
2026-07-24 10:15:24 +00:00
茂之钳 080776930f feat(examples): add 3D print pipeline, B-Rep fab, and SDF optimization demo
CI / Build & Test (push) Failing after 42s
CI / Release Build (push) Failing after 32s
- 08_3d_print: Complete SDF→marching cubes→STL pipeline with mesh stats
  (volume, bounding box) and both binary + ASCII STL exports
- 09_brep_fab: Fabrication-oriented B-Rep modeling: box→shell→STEP+GLB
  with AP214 header preview
- python_examples/sdf_optimize_demo.py: SDF parameter optimization
  from point clouds with analytic gradient descent
- Update examples/CMakeLists.txt to include new subdirectories
- Add __pycache__/ to .gitignore
2026-07-24 10:04:15 +00:00
茂之钳 40440fcc3e feat: GLTF/GLB export with normals + B-Rep tessellation + pipeline example
CI / Build & Test (push) Failing after 32s
CI / Release Build (push) Failing after 31s
2026-07-24 09:06:12 +00:00
ViewDesignEngine 029dd6b75a feat: v0.6.0 精度提升 — Shewchuk Level C + 分层容差 + 业内方案调研
CI / Build & Test (push) Failing after 31s
CI / Release Build (push) Failing after 31s
精确谓词: Shewchuk Level B → Level C (expansion arithmetic)
  - Dekker split + Two-Product + Two-Sum + Expansion 4-component
  - orient_2d/3d 自适应精度,支持大坐标(>1e14)
  - in_circle 扩展精度

容差系统: 单级 → 分层
  - Tolerance::tighten/relax 继承
  - Tolerance::min 合并取更严格
  - ToleranceScope 作用域临时容差
  - 预设容差级别: Modeling/Fitting/Intersection/Snapping

文档: 新增 06-精度提升方案调研 (252行)
  - 6种主流精度方案对比
  - Parasolid/ACIS/OCCT/CGAL 商业内核解密
  - VDE v0.6-v2.0 精度提升路线图
2026-07-23 09:58:38 +00:00
ViewDesignEngine ad85f199db fix: GJK 重写 — 球体碰撞正确 + 所有示例验证通过
CI / Build & Test (push) Failing after 35s
CI / Release Build (push) Failing after 37s
- GJK: 重写 simplex 迭代逻辑,球体分离/重叠判定正确
- collision 示例: 修复 lambda 返回类型
- 测试: 25/25 passed
- 示例: 6个全部跑通且输出正确
2026-07-23 09:22:36 +00:00
ViewDesignEngine 352ee39f53 feat: 插件化 API 架构 — C API + 模块独立 + 外部集成示例
CI / Build & Test (push) Failing after 37s
CI / Release Build (push) Failing after 35s
核心设计:
- include/vde/vde.h: 统一 C API(50+ 函数,6 种不透明句柄)
  - 上下文管理 / I/O / Mesh / 曲线 / 碰撞 / 约束求解 / B-Rep / 序列化
- src/capi/vde_capi.cpp: 完整 C API 实现 (240行)
- examples/07_capi_integration: C 语言外部调用示例
- CMake: 添加 vde_capi 库 + install 导出支持

模块架构(每个独立 .a):
  vde_foundation → vde_core → vde_curves → vde_mesh
  → vde_spatial → vde_boolean / vde_collision
  → vde_brep / vde_sketch → vde_capi
2026-07-23 09:06:18 +00:00
ViewDesignEngine 02d0520aa5 v0.1.0: 初始工程骨架 — 7模块 40头文件 32源文件 17文档 Apache-2.0 2026-07-23 05:27:51 +00:00