4 Commits
Author SHA1 Message Date
hm fa509d3f64 feat(curves): add curve_lies_on_surface degeneracy predicate (VDE-1584)
1.0.376: 1.0.375 记录了曲线整体落在曲面上时 curve_surface_intersection 返回 0 的限制。新增 curve_lies_on_surface(curve, surf, tolerance=1e-6):采样 33 个曲线点,全部到曲面距离 <= tol*尺度,且 project_point_on_surface 的 (u,v) 落在曲面参数域内(1e-9 相对边距)。实测:半径 sqrt(3)、z=1 的圆在球 R2 上 true;穿球直线 false;平面参数域内直线 true;离面 0.1 直线 false;域外直线 false。新增 AdvancedIntersectionTest.CurveLiesOnSurfaceDetection。全量 8,741 执行/8,701 passed/0 failed/826.18s;注册 8,743;报告 434;版本 1.0.376。
2026-11-13 00:50:46 +08:00
hm a5f58ded38 test(curves): lock curve-surface intersection exactness on line-sphere (VDE-1583)
1.0.375: 新增 AdvancedIntersectionTest.CurveSurfaceIntersection_LineSphereIsExact——直线 (-5,0,0)->(5,0,0) 穿球 R2,返回 2 个交点:t=0.300000000/0.700000000,位置 (-2,0,0)/(2,0,0),点到曲面距离 8.9e-15/9.1e-15,|pos|=2 误差 <=1e-12。既有 CS 测试仅 1e-4 级,本用例把精度锁到 1e-9。全量 8,740 执行/8,700 passed/0 failed/884.46s (宿主负载较高);注册 8,742;报告 433;版本 1.0.375。
2026-11-13 00:29:45 +08:00
hm 859fd4fc93 fix(curves): SSI 奇异场景加固与曲面实用 API/工厂/G1 过渡/loft 增强
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
- SSI: 相切/切线接触场景系统加固,参数域边界交线丢线检查修复
- NurbsSurface: 新增 bbox/closest_point/distance_to 实用 API 与 torus 工厂
- blend_surfaces: 连续性 C0 -> G1(切平面内偏移第二行控制点)
- loft_surface: 引导线映射 + 切线约束 + 非均匀 v 参数插值完整实现
- 新增对应 gtest 覆盖并全量回归通过
2026-08-17 18:54:13 +08:00
茂之钳 921c29cb22 feat(v7): B-Rep deep attack + Class-A surfacing + CAM deep + performance tuning
CI / Build & Test (push) Failing after 33s
CI / Release Build (push) Failing after 29s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
v7.1 — B-Rep 深度攻坚 (对标 Parasolid 95%):
- advanced_healing: auto_heal_pipeline, face_splitting/merging, topology_optimization
- watertight_verification, tolerance_analysis, tolerance diagnostic report
- sheet_metal: unfold_sheet_metal (K-Factor/BFS), bend_deduction_table, create_flange
- direct_modeling enhanced: draft_face_advanced (hinge), scale_body (non-uniform), mirror_body
- 32 tests (17 healing + 15 sheet metal), syntax-check passed

v7.2 — Class-A 曲面攻坚 (对标 CGM 95%):
- class_a_surfacing: g3_blend (4-row CP), curvature_matching (Levenberg-Marquardt)
- highlight_lines, reflection_lines, iso_photes, surface_diagnosis, shape_modification
- advanced_intersection: robust_ssi (3-stage: AABB+subdivision→Newton 1e-12→singularity)
- curve_surface_intersection, self_intersection_detection (BVH)
- 30 tests (18 class-A + 12 intersection), zero compile errors

v7.3 — CAM 深化 + 性能优化:
- cam_advanced: adaptive_clearing, trochoidal_milling, rest_machining, pencil_tracing
- tool_holder_collision_check, toolpath_optimization, feed_rate_optimization
- performance_tuning: parallel_task_graph (DAG+Kahn), work_stealing_scheduler
- memory_pool_integration, cache_optimization_hints, profile_guided_layout
- Fixed BrepModel API compatibility (body.bounds()/to_mesh() instead of .faces())
- 20 tests

12 files, ~5200 lines, 82 tests
2026-07-26 22:54:46 +08:00