Commit Graph

25 Commits

Author SHA1 Message Date
ganjihong beac59fc8b refactor(cdsl_engine): sink atomic runtime capability flags into schema contracts
Phase 4 of the decoupling refactor (behavior-preserving):
- profile_schema.json: every operation contract now carries
  runtime_capability {body_mutating, requires_active_body,
  replayable, requires_selector, open_profile_ok} (single source of truth)
- operation_contracts.py: validates and forwards the flags
- capabilities.py: the five data-classification frozensets are now
  derived from the schema at import time; dispatch-logic sets
  (_HOLE_ATOMICS, _PATTERN_ATOMICS, extent constants) stay in code
- test_profile_schema.py: completeness + structural invariants test

Equivalence proven by flag counts (27/13/25/6/2) matching the previous
hand-written sets and by the unchanged test-baseline failure set.
2026-09-09 13:41:38 +08:00
likang a5c3ec1f36 merge: resolve main integration conflicts 2026-09-09 10:39:34 +08:00
likang 2f89d7930c feat(cadfs): expand reconstruction capability coverage 2026-09-09 10:11:46 +08:00
ganjihong 7a2ce157f1 几个几何操作的微小bug 2026-09-08 19:57:52 +08:00
ganjihong 235d3bf0c8 解决合并冲突 2026-09-08 13:58:58 +08:00
ganjihong 673ae62e70 提交关于N5功能,“involute_gear渐开线齿廓与齿条专用生成”的改动 2026-09-08 13:47:24 +08:00
likang 5bd1011335 Merge remote-tracking branch 'origin/main' into lk_dev 2026-09-08 11:52:52 +08:00
likang 738934416e feat(cadfs): 扩展重建引擎能力并固化代表性模型回归
- 扩展 CDSL engine 的 shell、sweep、loft、reference plane、pattern 等运行时能力,
  支持新的实体结果模式、双向拉伸、曲线扫掠、镜像/圆周阵列及相关 selector 解析。
- 完善 Build123d 适配层的拓扑快照、Compound/ShapeList 兼容处理和旋转曲面识别,
  兼容 Python 3.12 / 当前 Build123d 缺少 axis_of_rotation 的合法曲面场景。
- 扩展 CDSL schema、profile schema、capability analysis、semantic validation 和
  sketch solver,使新增建模操作能够被校验、执行并保留可诊断的部分结果。
- 完善 CADFS FeatureScript lowering:
  支持 shell、sweep、surface/实体 loft、圆周阵列副本、镜像副本、删除阵列实例、
  新 body 操作、更多拉伸终止条件和 reference plane 变体。
- 补齐椭圆、B-spline、环形区域、imprint、SWEPT_FACE、CAP_FACE、OFFSET_FACE 等
  草图和拓扑引用的转换逻辑,改善后续特征的工作平面、轴线和 profile 定位精度。
- 改进 selector binding:支持 pattern 前缀复合 B-rep 快照、交集顶点引用、
  多面 match_mode=all、圆柱轴线/半径和面积下限等稳定匹配条件。
- 修复 MID_PLANE 法向统一后交线方向未同步的问题,恢复 00287955 基准面的正确位置;
  修复 00542223 sweep 路径反转后的切线契约和 00423838 的拓扑面数不稳定测试假设。
- 修正 CADFS 比较模块 import 路径,补充重建报告、批量重建脚本、目标文档和 README。
- 新增并扩展 engine、lowering、parser、selector binding、reports、integration 和
  Onshape pipeline 回归测试,覆盖代表性 CADFS 特征链及运行时兼容性。
2026-09-08 11:47:10 +08:00
ganjihong 2414904b02 处理一些冲突 2026-09-07 19:40:10 +08:00
ganjihong 00b50b1f31 提交N3 功能的改动 2026-09-07 19:30:56 +08:00
likang e7dc521ece Merge remote-tracking branch 'origin/main' into lk_dev
# Conflicts:
#	backend/engine/cdsl_engine/capabilities.py
2026-09-07 18:34:45 +08:00
likang 038d38ed98 feat(cadfs): 补齐核心建模能力并建立代表性回归
- 新增 loft、双向切除、through-all/up-to-next 等 CADFS lowering 与 engine 支持
- 支持多种 reference plane、B-spline profile 和 circular pattern replay
- 保留 transform 历史,并烘焙安全的单源平移/旋转变换
- 改进 selector 绑定、拓扑快照和 pattern 变换处理
- 建立 17 个代表样本的转换、重建与比较回归工具链
- 补充 schema、author guidance、运行时和几何回归测试
2026-09-07 18:21:07 +08:00
ganjihong a208ea5c8b open_slot 的第二次迭代 2026-09-07 17:44:05 +08:00
ganjihong 9a3e09b9f5 几何引擎新增open_slot功能。 2026-09-07 16:44:06 +08:00
ganjihong 9160c2bace 修改了一些之前增加功能的bug 2026-09-07 15:25:24 +08:00
ganjihong ef5d393c20 内螺纹 thread_cut 算子的增加 2026-09-04 17:42:04 +08:00
ganjihong bb9e8a8720 增加了thread几何基础操作 2026-09-03 19:39:06 +08:00
likang 100a0e106b Merge remote-tracking branch 'origin/main' into codex/save-current-work-20260901 2026-09-03 10:42:31 +08:00
likang bc87bd6d2d 重构 改为标准化输出 2026-09-01 14:10:23 +08:00
ganjihong d192ac5ccd pattern引用重解析,修复完成 2026-08-31 16:01:53 +08:00
ganjihong e5c71d07fa fix(engine): 放行固定宿主面与终止面的 pattern 变换
允许 hole_wizard 的 face selector 宿主面及 up_to_surface 的 face reference 终止面参与 pattern 变换,同时保留 mirror 等逐实例拓扑依赖的阻塞,并补充回归测试
2026-08-27 16:04:34 +08:00
ganjihong c84fc3ade4 fix(engine): 接受 hole_wizard 的 thread 装饰并按光滑孔降级执行 2026-08-27 15:19:24 +08:00
ganjihong ba481621be fix(engine): 显式拒绝 extrude draft 参数而非静默忽略 2026-08-27 15:10:36 +08:00
ganjihong dea818e07d fix(engine): 支持显式坐标选择器的阵列变换 2026-08-26 15:14:29 +08:00
likang fd8c0c37ad 优化engine 2026-08-24 10:01:21 +08:00