Commit Graph

21 Commits

Author SHA1 Message Date
NiJingzhe a5e6bf8eb6 feat(core)!: QL-only topology enumeration — remove bare getter list form
Plural topology getters (get_edges/get_faces/get_wires/get_vertices/
get_solids/get_inner_wires/get_edge_occurrences and the Compound
variants) now accept ONLY an index. The no-argument list form raises a
SimpleCADError with migration guidance (enumerate via
ql.<kind>().resolve(shape), pick via get_X(index)). This closes the
selection channel that escapes the graph: Python loops over bare lists
lose the predicate, capture kernel artifacts (the periodic-face seam
edges that broke FCStd translation), and leave no cardinality contract.

- each shape class keeps its enumeration logic as private _iter_<kind>();
  indexed picks record geo-select nodes as before (contract test added);
  Compound getters gain the same indexed recording they lacked
- _TopologySelectionList (the __getitem__ recording vehicle, which also
  made get_X()[i] a silent escape hatch) is retired
- all 109 internal call sites, 165 test call sites, and 31 example call
  sites migrated: SDK/tests use the private channel, user-facing
  examples use ql.<kind>().resolve(...)
- QL _resolve_scope_items switches to the private channel; scene
  contract profile descriptions synced; error strings recommending
  bracket indexing rewritten
- skill docs: strict prohibition added to SKILL.md global rules (new
  rule 6), core README contract statement rewritten, solid/wire/face/
  shell/tagged_mixin pages re-exemplified with QL, geometric-validation
  anti-pattern section updated; mirrors rebuilt via tools/skillbuild.py

Gates: full suite 1418 passed / 5 skipped; translator suites 133 passed;
u_link stage verifiers + render check ALL PASS; scadpkg->FCStd
retranslation verified (5 visible deliverables, 167-object editable
tree).
2026-09-01 02:09:29 +08:00
NiJingzhe 9d6703a786 feat: enforce canonical product capture workflow 2026-08-15 16:17:11 +08:00
NiJingzhe 527bc8eee6 Fix workplane replay and BREP entity maps 2026-08-05 18:26:12 +08:00
NiJingzhe 9a3bb407ae Harden union behavior for touching solids 2026-08-02 04:06:51 +08:00
NiJingzhe 0369769684 Add semantic CAD workflows and advanced examples 2026-07-15 19:58:30 +08:00
NiJingzhe f4f4d12eda Complete sketch and exact spline translation 2026-06-20 22:12:53 +08:00
fanfengxiao c12e918713 fix: rename solid boolean APIs to rsolid 2026-06-08 15:11:34 +08:00
NiJingzhe 7425f71d79 Refactor SDK contract and QL selection replay 2026-06-01 01:14:19 +08:00
NiJingzhe 65beee4c81 Prepare 2.0.0b1 beta release 2026-05-09 23:17:08 +08:00
NiJingzhe a05f1e90e6 Refactor runtime to OCP-native kernel 2026-05-03 03:03:29 +08:00
NiJingzhe ab36be0484 fix: align union defaults and bump release version
Route union through CadQuery-style fuse defaults, emit a clear warning when solids remain separated beyond tolerance, and document the updated behavior. Bump the package and skill runtime references to 2.0.8 for the next PyPI release.
2026-03-23 20:29:36 +08:00
NiJingzhe 0e23835385 docs: translate docstrings and refresh skill guidance
Translate the Python docstrings and regenerated API references to English so downstream tooling and generated docs stay consistent. Refresh the skill instructions to require repo-root doc reads and incremental QL-grounded validation, then release the update as 2.0.5.
2026-03-21 00:07:01 +08:00
NiJingzhe 037cd4cbb4 实现声明式装配约束并精简 sandbox 示例 2026-03-06 18:00:13 +08:00
NiJingzhe 37192dc8cb 补充 STEP 多实体单文件导出回归测试 2026-03-04 20:23:11 +08:00
倪旌哲 da383f2fab 重构布尔运算为列表语义并补充圆锥与进化示例,统一更新测试与示例脚本 2026-03-02 21:41:34 +08:00
倪旌哲 cc5281064f 优化了tag,去掉了不需要的类型,优化了部分函数的关键字参数名称。同步了文档 2025-07-23 01:52:04 +08:00
倪旌哲 3fff83f7ec 修改部分API的行为,尤其是在变换坐标系的问题。没有改变API定义 2025-07-16 19:21:08 +08:00
倪旌哲 0603c8111c Remove test for polyline edge creation and its exception handling from TestBasicShapes class in test_all_features.py 2025-07-06 15:15:58 +08:00
倪旌哲 c8edd62793 feat: 更新示例和测试用例以支持新的线性和径向阵列函数,改进导出函数类型注解 2025-07-06 10:16:45 +08:00
倪旌哲 f05d04edeb Refactor and enhance SimpleCAD API with new geometric functions and comprehensive tests
- Updated README.md to reflect changes in Edge and Wire creation.
- Removed outdated TEST_AND_EXAMPLES.md file.
- Modified examples.py to change output directory and improve example shapes.
- Deleted obsolete STL files from examples_output.
- Added new functions for creating segments, angle arcs, splines, polylines, and helices in operations.py.
- Updated __init__.py to include new functions and their aliases.
- Enhanced test_all_features.py with tests for new functions and error handling.
- Improved error handling in geometric operations.
2025-07-06 00:04:35 +08:00
倪旌哲 faec3a4151 Refactor code structure for improved readability and maintainability 2025-07-05 22:17:11 +08:00