hm
fa570cf928
fix(python): complete pybind defaults and namespace
2026-10-30 00:05:10 +08:00
hm
c9ce95f59d
fix(python): resolve pybind overloads and transform include
2026-10-30 00:03:59 +08:00
hm
9515e95697
fix(python): include BrepModel in CAM binding
2026-10-30 00:01:53 +08:00
hm
0288ad7951
fix(python): include NurbsCurve in CAM binding
2026-10-30 00:00:42 +08:00
hm
5208f4c0a4
feat(final): 跨平台就绪 + Python ctypes 打包 + 模块包模式矩阵(1.0.87,含阻塞结论)
2026-10-29 22:32:41 +08:00
hm
a86bac1497
revert(P4-12): restore existing ctypes package
2026-10-29 19:59:40 +08:00
hm
8b2aae7626
docs(P4-12): ctypes binding usage and packaging limits
2026-10-29 19:59:10 +08:00
hm
3d453c84f8
feat(P4-12): ctypes Python binding smoke
2026-10-29 19:57:52 +08:00
hm
1ece23ed5a
feat(P4): ABI 1.4 mesher + Python 回归 + 模块包 CI 矩阵 + 宿主/平台交接 + 多团队分发体系(1.0.79)
...
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
### P4-01 插件 ABI 1.4 mesher 扩展点
- VDE_PLUGIN_ABI_MINOR 3→4;VdePluginKind MESHER=8;VdeMesherStatus/Options/Result/Plugin;
VdePluginRegistration 尾追加 mesher 指针(48→56B,旧 1.3 按 struct_size 安全);
- PluginManager kind/meshers()/invoke_mesher()/失败隔离/unload 清理;ABI 语义 manifest.minor<=query.minor<=host.minor;
- sample_mesher(mock tet4);ABI 矩阵 1.0–1.4 accepted=5 + 2.0 rejected;--abi/--check 适配;
- test_plugin_mesher 7 用例 + VDE_PluginToolMesherAbi CTest;docs plugin-development §15/plugin-distribution §12;
### P4-02 Python ctypes 回归
- 可选 CTest VDE_PythonCtypesSmoke(Python3 可选/vde_capi_shared/smoke_test_ctypes.py;无 Python 跳过);
- VDE_BUILD_PYTHON=ON MinGW 原生 pybind 明确跳过(ctypes 保留);README/testing 文档更新(C API 61/绑定 60);
### P4-03 模块包 CI 矩阵
- cmake/check_module_packages.cmake:configure/build/install → 10 模块包 find_package + 仓库内 consumer 编译运行;
- tests/module_packages/consumers/(10 个最小工程);CI module-packages job;本地 MODULE_PACKAGES_PASS pass=10 fail=0;
### P4-04 宿主复测/平台 CI 交接 + 多团队分发体系
- docs/reference/76-宿主复测与平台CI交接包(1.0.78).md;VDE-1251/1252 反馈单追加复测指引;
- docs/design/multi-team-development.md(T1–T8/ownership/契约/流程)、docs/planning/work-packages.md(39 WP)、
docs/guides/team-onboarding.md、docs/design/plugin-ecosystem-handoff.md、.github/ISSUE_TEMPLATE/work-package.yml;
- roadmap P4-01..05 交付;WP 状态 27 Delivered/0 In-Progress/12 Candidate;
### 工程
- 版本 1.0.79;与远端 f6e0ac97(plugin template SDK consumption/ecosystem plan)rebase 集成;
- 全量构建 0 error(405 targets);全量 ctest 7569 注册、7474/7474 PASS(0 failed,25 skipped,238.13s)。
2026-10-29 13:55:09 +08:00
hm
0885c6c542
fix(feedback): R3 收口 — VDE-1246 布尔朝向 / VDE-1239 §1 display 扇线 / VDE-1242 封口 / C API options(1.0.23)
...
第三轮(第一轮审查报告剩余内核问题):
- VDE-1246(新发现 High):布尔结果面朝向矛盾但 validate valid、体积错误。
新增 OrientationConsistency + orientation_consistency()(流形边方向不变量);
validate(strict_orientation) 严格模式(默认语义不变);fix_shell_orientation_strict()
(嵌套内环岛面拆分 + 边奇偶 BFS + 分量体积/嵌套深度定号);heal_shell_orientation 收尾调用;
brep_union/intersection/difference 返回前 finalize_boolean_orientation(仅不一致时修复,正常零开销)。
环形槽 fixture:32 同向边/33 面 → 0/0;71→72 面;体积 62610.69 → 65607.280328(rel 4.4e-16);
开口保持 2 环、无桥接面;网格体积 rel 4.4e-16。
- VDE-1239 §1:根因=凹形单环平面面固定顶点扇形三角化(U 形 800mm² → 1100/+37.5%、越界/重叠/零面积)
→ 新增 triangulate_planar_ring() ear-clipping(失败回退 CDT),平面单环快路径改用耳切;
新增 DisplayMesh::degenerate_triangles/duplicate_triangles 诊断。合成 n42 形态 51 面:面积比 1.0000237、
重叠/重复/零面积 0;全平面 boolean 链总面积 vs 解析 ≤1e-6。跨面 T-junction 残缝未缝合(诊断+建议)。
- VDE-1242:CapKind{kPlanar,kFitted3D} + 非平面开口 fitted3d 3D 封口(边界顶点真实 3D、cap 距 rim=0、
watertight、网格开边 0、体积 1666.7 vs 平面近似 1083.9);even-odd 任意深度嵌套(depth≤2 实测:
空腔体积 8011.9256 精确、openings=2、loops=3、cap 面积解析一致)。
- C API 显示选项全暴露:VdeDisplayOptions/VdeWireframeOptions + vde_body_to_display_mesh_opt/
vde_body_to_wireframe_opt(quality/expected_faces/open_edge_weld_tolerance/merge_tolerance/
tangent_angle/include_hidden;opt=NULL 默认;旧 ABI 不变);Python ctypes 同步;display 17/17。
工程健壮性(R3 验证发现):
- ParallelTaskGraph 依赖完成语义修复(真实缺陷:锁内先置 completed 再执行 func,依赖任务可能提前执行);
改 dispatched + 函数返回后置 completed + cv 唤醒;压测 100/100。
- HLR perf 用例改为 best-of-2 + 绝对预算 1500ms(保留历史基线比值打印),消除负载假阳性;
HLR 10/10。
- CI 各 job 增加 timeout-minutes(build 90/TSan 90/ASan 120/Valgrind 60/Coverage 90/Perf 60)。
- 版本 1.0.23 全链路一致。
验证(docs/reference/54 独立验证报告):
- 全量 ctest:Lead 7206/7206 PASS(0 failed、22 skipped、388.95s);verifier 独立构建 7206/7206 PASS
(0 failed、0 timeout、393.9s);R3 独立探针 162/162;独立全量构建 898/898、0 error;
R3 变更文件 0 新增 warning。
2026-10-28 09:02:54 +08:00
hm
1e9511a316
fix(feedback): R2 收口 — 第一轮审查剩余问题第二轮修复(1.0.22)
...
第一轮审查报告(docs/reference/52 §9)剩余问题第二轮闭环:
- VDE-1235 C API 补齐:flags VDE_DISPLAY_SMOOTH_GROUPS/ALLOW_PARTIAL;VdeDisplayMeshEx +
vde_body_to_display_mesh_ex/_lod;VdeWireframeEx/VdeWireframeSegmentInfo + vde_body_to_wireframe_ex
(crease/tangent/二面角/相邻面);旧 ABI 不变;Python ctypes 绑定补齐
- VDE-1235 #2 全边 chamfer 解析快速路径:轴对齐 box 全 12 棱 → 26 面解析体(0 开边、体积解析 rel=0、
1.44ms、to_mesh 44 三角;旧逐边路径分钟级且多边结果不可用)+ chamfer_edges_ex id 映射/显式失败
- VDE-1239 §3/§4:build_wireframe 去重/短段过滤/确定性(WireframeOptions + 统计);DisplayMesh 开口边
诊断 open_edge_count/open_edge_length(26 面圆角盒 Normal 984/1558.75、Draft 600/1558.67、box 0)
- VDE-1240:新增 curves/surface_op_status.h + 各曲面算子 *_checked(退化 ok=false+error,正常与 legacy
逐控制点一致)
- VDE-1241:轴对齐 box 结构化四面体(边界面严格在 B-Rep 6 面、6 面 partition 非空、体积精确 72000)
- VDE-1243:共面三角对精确重叠面积(Sutherland-Hodgman;平板 area_mismatch 1.9e-15,部分重叠精确)
- VDE-1244:automatic_heal 在所有守卫/回退后以最终 body 回填报告字段
- VDE-1245:TorusGeometry/face_torus_geometry、CircleGeometry/edge_circle_geometry(≤1e-9)
- VDE-1242:带岛开口封口(环形槽体积 0.641%)、merge_boundary_layer 节点融合、开口残差结构化报告
- VDE-1231 请求3 / VDE-1237:公开 TessellationOptions + to_mesh* options 重载(env 仅默认来源,
显式口径固定、serial==parallel==soup)
工程健壮性:
- CTest 每测试 TIMEOUT 600(防环境级挂起拖死 CI)
- to_mesh_parallel/to_triangle_soup 线程数上界钳制到硬件并发(消除 libgomp 高负载 teardown 挂起:
SafetyEdgeCases 30/30、全量 ctest 0 timeout)
- 版本 1.0.22 全链路一致(CMake/version.h/VDE_VERSION_NUM=10022/test_version/README/docs index)
验证(docs/reference/53 独立验证报告):
- Lead 最终 build 全量 ctest 7184/7184 PASS(0 failed、22 skipped、245.5s)
- verifier 独立构建复跑 7184/7184 PASS(0 failed、0 timeout、333.2s);18 组/268 项独立探针 267 PASS
(唯一 FAIL 为独立复现的内核既有布尔朝向问题,已记录剩余问题);独立全量构建 896/896,0 error
- R2 新增/扩展测试全绿(display 8、C API 11、legacy mesh 14、chamfer 5、heal 9、FEA 16、
interface map 14、checked API 19、entity 20、fluid 28 等)
2026-10-28 07:30:31 +08:00
hm
bc164dafc9
feat(capi,python): Phase6 显示/B-Rep C API — 7 个新函数(body_to_display_mesh/wireframe/get_face_count/get_face_info/get_edge_count/get_edge_info/get_edge_polyline,55=48+7 API,vde_free_buffer 内存契约);C API 测试 5/5(box 24V/12T/6F/12E、cylinder 圆边 kind=Circle r=4±1e-6/弦高、错误码/last_error),capi 回归 31/31;Python ctypes 55/55 + smoke 25/25(display mesh/wireframe/face/edge info)
2026-10-26 12:39:39 +08:00
hm
a0c70f383d
feat(python): Phase5 ctypes 全 API 绑定 48/48(签名逐项对齐 C API,修复旧 load_mesh/last_error 签名错误)+ smoke 22/22 PASS(STEP/IGES 往返/布尔/网格/SDF/曲线/碰撞/装配/100 次创建释放无崩溃)+ 覆盖矩阵 README
2026-10-26 09:52:00 +08:00
hm
98022f1f38
feat(python,build): Python 绑定闭环 — ctypes 离线路径(vde_capi_shared 共享 DLL + Body/Mesh 包装 + smoke PASS)、pybind11 本地离线 configure(pip pybind11 3.0.4 + CPython 3.14);14 项 Skip 夜间语料/fuzz/bench 脚本
2026-10-26 06:23:19 +08:00
hm
3c992eb61c
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,且该可执行文件不链接本次变更符号,判定与本分支无关)。
2026-10-25 15:20:04 +08:00
hm
780fd102f0
feat(sdf): VDE-141 SdfNode::hex_prism 支持独立半径/边数(radius,height,sides=6)
...
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
工厂原仅接收 height 且把 radius 硬绑等于 height。改为 hex_prism(radius,height,sides=6),SdfParams 增 sides;新增通用 regular_polygon_prism 精确 SDF(扇区折叠,sides=6 与旧 hex_prism 几何一致),evaluate 经其求值;bounds 半径随 radius/height 计算。python 绑定同步。
判别性测试 +7:test_sdf_tree 半径/高度独立、边数控截面、非法边数夹取;test_sdf_primitives 顶点共享、面法向精确距离。sdf 6 套全绿(tree 34、primitives 69、to_mesh 6、optimize 21、operations 33、gradient 51)。
2026-10-06 14:47:22 +08:00
hm
e1b00ade36
refactor(batch4): extract CAM subsystem + assembly_lod
...
CAM: 7 headers + 7 sources + 8 tests moved from core/ to vde_cam/
Internal 5-layer dependency chain preserved (cam_toolpath → strategies → advanced/optimization/5axis/mesh/gcode)
Python bindings updated (python/src/vde_cam.cpp)
Assembly LOD: moved from brep/ to vde_render/
Tests: cam_toolpath 11/11, cam_strategies 31/31, gcode_import 10/10, assembly_lod 22/22 — all pass
Fixed: test_cam_3plus2 disabled (pre-existing VDE-242 not implemented)
Fixed: removed unused using namespace vde::brep from CAM tests
2026-08-06 17:06:21 +08:00
茂之钳
e469ef75ef
feat(v5-M4): industrial formats + GPU acceleration + Python bindings
...
CI / Build & Test (push) Failing after 35s
CI / Release Build (push) Failing after 41s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
M4.1 — 工业格式 (Agent #0 ):
- JT parser: ISO 14306 Segment→Part→Mesh/LOD, XT B-Rep decode
- Parasolid XT: text/binary parser, Body→BrepModel mapping
- ACIS SAT: text format parser with version handling
- IFC: SPF parser, IfcWall/Slab/Beam/Column entities
- STEP AP242: PMI annotation + tolerance export
- 47 tests covering all formats + edge cases
M4.2 — GPU 加速 (Agent #1 ):
- CUDA kernels: mc_kernel, qem_cost_kernel, tri_intersect_kernel
- __constant__ memory for edge tables, atomic triangle collection
- CPU fallback when CUDA unavailable (seamless degradation)
- VDE_USE_CUDA CMake option, .cu compilation support
- 9 tests with CPU path validation
M4.3 — Python 绑定 (Agent #2 ):
- vde_brep: BrepModel, make_*, boolean, STEP/IGES, heal, validate
- vde_sdf: primitives, operations, to_mesh, gradient descent
- vde_cam: roughing/finishing/drilling, Tool, ToolLibrary
- vde_assembly: Assembly, AssemblyNode, interference, explode
- Version: 3.3.0 synced across pyproject/setup/__init__
13 files, ~5200 lines, 56+ tests
2026-07-26 21:34:44 +08:00
茂之钳
7c2fb4b7c3
feat(v3.2): CI/CD config + Python bindings setup
...
CI / Build & Test (push) Failing after 43s
CI / Release Build (push) Failing after 41s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
- Add .gitea/workflows/build.yml (build, test, docs, python binding CI)
- Add root pyproject.toml + setup.py (CMake-based pip install)
- Add root vde/__init__.py (Python package entry point)
- Update README: CI badge, version 3.2.0, Python install instructions
- Bump project version to 3.2.0 across CMakeLists.txt, python/setup.py, python/vde/__init__.py
- Add build_py/ to .gitignore
2026-07-24 11:33:09 +00:00
茂之钳
08b5854c56
feat(sdf): S12-C PyTorch integration + Python bindings
...
CI / Build & Test (push) Failing after 16m59s
CI / Release Build (push) Failing after 42s
Add batch evaluation/gradient functions for SDF trees (sdf_torch.h/cpp).
Add sdf_gradient.h with finite-difference gradient utilities.
Add Python modules vde.sdf (high-level SDF API) and vde.torch_sdf (PyTorch autograd).
Add test_sdf_torch_bridge.cpp with batch eval/gradient tests.
Integrate into vde_sdf library and test suite.
2026-07-24 07:20:45 +00:00
茂之钳
b7419a7881
feat(sdf): S11 — SDF 隐式建模完整模块
...
CI / Build & Test (push) Failing after 29s
CI / Release Build (push) Failing after 35s
S11-A: SDF 图元库
- 14 种基础形状(inline header)
- sphere/box/round_box/torus/capsule/cylinder/cone/plane/ellipsoid
- triangular_prism/hex_prism/link/wedge
- 2D 挤出(extrusion/extrusion_bounded/revolution)
S11-B: SDF 操作 + 域变形
- 锐利布尔: union/intersection/difference
- 平滑布尔: smooth_union/smooth_intersection/smooth_difference
- 修饰器: round/onion
- 域变形: repeat/mirror/rotate/translate/scale/twist/bend/elongate/displace/cheap_bend
- 24 项测试
S11-C: CSG 表达式树 + 网格转换 + Python 绑定
- SdfNode 树结构 — 工厂构造函数,递归求值
- sdf_to_mesh — 基于 marching_cubes 的 SDF→网格
- bind_sdf — pybind11 Python 绑定
文件: 14 文件,2,545 行(测试 1,296 行)
2026-07-24 07:04:55 +00:00
茂之钳
bd37f2249d
feat: Python 绑定 — pybind11 核心/曲线/网格模块
...
CI / Build & Test (push) Failing after 33s
CI / Release Build (push) Failing after 32s
- 使用 pybind11 v2.11.1 (FetchContent) 构建 _vde 原生模块
- 模块化结构: bind_core.cpp / bind_curves.cpp / bind_mesh.cpp
- 暴露核心类型: Point2D, Point3D, Vector3D, AABB3D, Polygon2D
- 暴露曲线: BezierCurve, BSplineCurve, NurbsCurve
- 暴露网格: delaunay_2d/3d, DelaunayResult, HalfedgeMesh
- 变换函数: translate, rotate, scale 等
- Python 包 vde/ 含 __init__.py 及子模块封装
- setup.py 支持 pip install -e . 可编辑安装
- VDE_BUILD_PYTHON CMake 选项 (默认 OFF),通过 -DVDE_BUILD_PYTHON=ON 启用
2026-07-24 03:58:19 +00:00
ViewDesignEngine
cf13496ff6
feat: v0.5.0 P1 + 差异化功能 — Voronoi, Marching Cubes, 曲率, 序列化, Python绑定
...
CI / Build & Test (push) Failing after 1m31s
CI / Release Build (push) Failing after 16m55s
新增功能:
- core: 2D Voronoi 图(Delaunay 对偶图)
- mesh: Marching Cubes(完整256项三角表 + SDF 辅助函数)
- mesh: 离散曲率(Gaussian/Mean, Cotan 公式)
- foundation: 二进制序列化(版本化格式,Little-Endian)
- python: pybind11 绑定(30+ API 暴露)
- marching_cubes.h: SDF 基本体(球/盒)+ 光滑布尔
2026-07-23 06:27:43 +00:00