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
ganjihong
5ffb106f36
refactor(cdsl_engine): executor registry + per-family executor package
...
Phase 3 of the decoupling refactor (behavior-preserving):
- registry.py: atomic_executor decorator, ALL_ATOMIC_IDS with
fail-fast registration validation, execute_node dispatcher
- executors/: one module per family (extrude, revolve, surfaces,
loft_sweep, bodies, context, primitives, parametric, holes,
dressup, patterns) + shared helpers in executors/common
- executors/__init__: explicit aggregation + completeness check
(registry must cover every declared atomic id at import time)
- runtime.py: slimmed to entry points (analyze_cdsl/rebuild_cdsl)
plus full historical re-exports incl. test-referenced privates
Adding an atomic operation now touches only one executor module and
its schema contract; the shared registry never changes. Verified
against baseline: zero new failures.
2026-09-09 13:33:06 +08:00
ganjihong
871070c440
refactor(cdsl_engine): extract session/extents/pattern_transform from runtime
...
Phase 2 of the decoupling refactor (behavior-preserving move):
- runtime_base.py: RuntimeExecutionError, FeatureExecutionError, ExtentVector
- session.py: GeometryAdapter protocol + ExecutionSession
- extents.py: end-condition planning (_extent_vectors family)
- pattern_transform.py: translate/mirror/rotate replay parameter algebra
- runtime.py: keeps executors + registry + entry points; re-exports all
moved names (incl. test-referenced privates) for import stability
No behavior change; verified against baseline (zero new failures).
2026-09-09 13:13:17 +08:00
ganjihong
3fb08423da
refactor(cdsl_engine): split runtime_types into specs + topology with shim
...
Phase 1 of the decoupling refactor (behavior-preserving move):
- specs.py: vector math, plane/axis helpers, parametric feature specs
- topology.py: diagnostics, planning contracts, TopologyRegistry
- runtime_types.py: compatibility shim re-exporting all public names
No behavior change; all historical import paths keep working.
2026-09-09 12:58:58 +08:00
likang
f79c28759d
Merge pull request 'Lk dev' ( #20 ) from lk_dev into main
...
Reviewed-on: #20
2026-09-09 10:41:30 +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
likang
9ab20db443
Merge pull request '几个几何操作的微小bug' ( #18 ) from ganjihong into main
...
Reviewed-on: #18
2026-09-08 20:01:55 +08:00
ganjihong
7a2ce157f1
几个几何操作的微小bug
2026-09-08 19:57:52 +08:00
likang
cf991dd619
Merge pull request 'N5 渐开线齿廓与齿条专用生成 involute_gear 的功能增加' ( #17 ) from ganjihong into main
...
Reviewed-on: #17
2026-09-08 14:25:26 +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
c0475c5df5
Merge pull request 'Lk dev' ( #16 ) from lk_dev into main
...
Reviewed-on: #16
2026-09-08 11:54:00 +08:00
likang
5bd1011335
Merge remote-tracking branch 'origin/main' into lk_dev
2026-09-08 11:52:52 +08:00
likang
6e8b994ee7
Merge pull request 'N3 功能,sheet_bend 钣金折弯功能的增加,还有一些简单的代码冲突' ( #15 ) from ganjihong into main
...
Reviewed-on: #15
2026-09-08 11:48:25 +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
f48ba19dfa
sheet_bend 的一个文件
2026-09-08 10:03:03 +08:00
ganjihong
c524f0213c
一个小的代码冲突
2026-09-07 19:53:25 +08:00
ganjihong
2414904b02
处理一些冲突
2026-09-07 19:40:10 +08:00
ganjihong
00b50b1f31
提交N3 功能的改动
2026-09-07 19:30:56 +08:00
likang
d518442565
Merge pull request 'Lk dev' ( #14 ) from lk_dev into main
...
Reviewed-on: #14
2026-09-07 18:40:19 +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
d2a33390dd
Merge pull request 'open_slot 的第二次迭代' ( #13 ) from ganjihong into main
...
Reviewed-on: #13
2026-09-07 18:21:56 +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
likang
4ad890b7b4
Merge pull request '几何引擎新增open_slot功能。' ( #12 ) from ganjihong into main
...
Reviewed-on: #12
2026-09-07 16:59:05 +08:00
ganjihong
9a3e09b9f5
几何引擎新增open_slot功能。
2026-09-07 16:44:06 +08:00
likang
c1b84d1f76
Merge pull request '修改了一些之前增加功能的bug' ( #11 ) from ganjihong into main
...
Reviewed-on: #11
2026-09-07 15:57:53 +08:00
ganjihong
9160c2bace
修改了一些之前增加功能的bug
2026-09-07 15:25:24 +08:00
likang
4f068068f9
Merge pull request 'Ganjihong: thread 功能的主要功能实现' ( #10 ) from ganjihong into main
...
Reviewed-on: #10
2026-09-04 17:49:53 +08:00
ganjihong
ef5d393c20
内螺纹 thread_cut 算子的增加
2026-09-04 17:42:04 +08:00
likang
921ba5eab3
change
2026-09-04 11:17:36 +08:00
ganjihong
9abba1b12d
Merge branch 'ganjihong' of https://gitea.robotquan.com/likang/cdsl-cad into ganjihong
2026-09-04 10:36:45 +08:00
ganjihong
9c52022c14
thread 功能的主要功能实现
2026-09-04 10:29:39 +08:00
likang
9e27f11bb7
Merge pull request '增加了thread几何基础操作' ( #9 ) from ganjihong into main
...
Reviewed-on: #9
2026-09-04 10:18:51 +08:00
likang
1b6958db62
Merge branch 'main' into ganjihong
2026-09-04 10:18:36 +08:00
ganjihong
bb9e8a8720
增加了thread几何基础操作
2026-09-03 19:39:06 +08:00
likang
1a43556910
Merge pull request 'feat: add 增加了几个较为简单的几何操作' ( #8 ) from ganjihong into main
...
Reviewed-on: #8
2026-09-03 17:05:08 +08:00
ganjihong
ef9626f936
feat: add primitive & pattern geometry ops to build123d adapter
...
- add box/cylinder/intersect/sweep/sweep_path/helix_path primitives
- add pattern_linear/pattern_circular direct kernel arraying
- refactor boolean result normalization into _coerce_single_or_compound
2026-09-03 16:14:33 +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
c25b73c71e
添加cadfs_to_cdsl代码,优化cad生成
2026-09-03 10:40:51 +08:00
likang
bd03efd8b6
Merge pull request 'Ganjihong' ( #7 ) from ganjihong into main
...
Reviewed-on: #7
2026-09-02 13:57:49 +08:00
likang
f3eb5dff54
优化流程
2026-09-02 13:51:35 +08:00
likang
97a03c290b
chore: save current work
2026-09-01 16:37:27 +08:00
likang
bc87bd6d2d
重构 改为标准化输出
2026-09-01 14:10:23 +08:00
ganjihong
20df5248a4
Merge branch 'ganjihong' of https://gitea.robotquan.com/likang/cdsl-cad into ganjihong
2026-08-31 17:41:03 +08:00
ganjihong
99796b03e8
refactor(engine): 更新特征配置模式
2026-08-31 17:40:50 +08:00
ganjihong
256193a5c6
fix(engine): 修正孔轴向判定并补充实体计数
2026-08-31 17:39:14 +08:00
likang
a16919f050
Merge pull request 'Ganjihong' ( #6 ) from ganjihong into main
...
Reviewed-on: #6
2026-08-31 17:01:24 +08:00
ganjihong
52dd2d929a
revert 9d849df618
...
revert feat(engine): 鏀寔 annulus/circles profile 鐩存帴閲嶅缓涓?schema 鍚屾
2026-08-31 16:44:59 +08:00