4 Commits
Author SHA1 Message Date
hm 9860d9da65 E12: 性能优化 - SSI 并行 + MC SIMD + STEP 预编译索引 + 6 测试
- surface_intersection: 种子发现与曲线追踪 OpenMP 并行(按叶面片对/种子顺序合并保确定性,与串行逐位一致)
- parallel_mc: 活跃边无分支收集 + 插值/全局索引键 SIMD 向量化,保持水密焊接
- step_import: 实体类型哈希索引预编译替代 O(N²) 扫描 + referenced_by_solid 集合
- 新增 6 测试验证确定性、水密性、正确性(基线 3 二进制直跑 Exit 0 无回归)
2026-08-11 15:40:26 +08:00
hm d0140cec55 feat(mesh): E3a 无查表 Marching Cubes + 串/并行水密焊接
- 删除截断的 triTable,改用 mc_triangulate_case 无查表三角化,覆盖全部 256 种配置(4 边歧义面按面内轴坐标规范排序配对)
- 串行路径改用全局角点索引键焊接,跨立方体顶点去重 → 水密
- 并行路径:角点坐标统一用绝对全局索引公式;所有边沿坐标增大方向插值(edge2/3/6/7 反序修正),消除共享边 1 ULP 差;焊接改按物理边身份键(与串行一致),避免等值面过格点时的自环退化边
- OpenMP 经 vde_compile_options 传播至所有模块
- 新增验证:256 配置三角化圆盘性质、单角点基准、串/并行球水密(边界边=0)、线程数无关性、表面精度
2026-08-09 13:56:45 +08:00
茂之钳 283458524a fix: resolve all compilation errors — zero errors, 987/987 tests pass
CI / Build & Test (push) Failing after 33s
CI / Release Build (push) Failing after 32s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
Fixes:
- parallel_intersection.cpp: add missing vde/core/aabb.h, fix 4-way subdivision, remove unused vars
- draft_analysis.cpp: remove nonexistent vde/core/vector.h include
- parallel_boolean.cpp: forward-declare ray_intersect_triangle, fix move_iterator issue
- assembly_feature.h/.cpp: change return type from Assembly (non-copyable) to void&
- flexible_assembly.h/.cpp: same Assembly non-copyable fix
- test_parallel_mc.cpp: add vde/core/aabb.h + proper using declarations
- test_v5_features.cpp: add using namespace vde::curves, fix Assembly{"test"}
- test_v5_1.cpp: remove GPU tests (separate lib), fix Assembly{"test"}
- .gitignore: add build_*/ pattern

Build: Docker vde-builder, 2 CPUs, 8GB RAM, GCC 11.4
Tests: 987/987 passed (100%)
2026-07-26 19:39:56 +08:00
茂之钳 cf38d76fd0 feat(v4.6): memory pool + parallel boolean/MC/intersection + GMP exact predicates
CI / Build & Test (push) Failing after 16m56s
CI / Release Build (push) Failing after 24s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
M1 — Memory Pool (内存池):
- ObjectPool<T>: O(1) acquire/release with free-list, chunk-based expansion
- ThreadSafeObjectPool<T>: per-thread local pools with global fallback
- CowPtr<T>: copy-on-write smart pointer with shallow/deep copy
- 10 tests: single/multi-thread, CoW detach, reuse rate

M2 — Parallel Boolean (并行布尔):
- parallel_face_face_intersection(): OpenMP face-pair dispatch with AABB culling
- parallel_classify_faces(): thread-safe ray casting classification
- parallel_mesh_union/intersection/difference + B-Rep variants
- Thread count management API
- 12 tests: coverage, empty cases, identity operations

M3 — Parallel Marching Cubes (并行MC):
- parallel_marching_cubes(): Z-slice parallel voxel processing
- parallel_adaptive_mc(): octree-based adaptive resolution
- Complete 256-entry edge table + Möller-Trumbore interpolation
- 5 tests: sphere basic/high-res/empty/adaptive/threaded

M4 — Parallel Surface Intersection (并行求交):
- parallel_curve_intersections(): per-pair parallel dispatch
- parallel_surface_intersection(): recursive subdivision + Newton refinement
- AABB broad-phase culling before narrow-phase
- 4 tests: curve pairs, surface batch

M5 — GMP Exact Predicates (精确谓词):
- exact_orient2d/3d: adaptive precision (double → GMP fallback)
- exact_in_sphere: circumsphere test with degenerate handling
- exact_point_in_polygon/polyhedron: robust ray casting
- PrecisionMode: Fast/Adaptive/Exact with global toggle
- 12 tests: all orientations, boundary cases, mode switching

21 files, +2263 lines
2026-07-26 17:28:15 +08:00