DECISION: the roller-chain sprocket goldens and the C++ expectation move to the cleaned topology; they are not held at the
old counts. The port is now deliberately different from the 2.2.6 reference on this point.
WHAT CI SAID, AND WHY EACH ITEM IS RIGHT TO CHANGE
- C++ doctest `std` (test_chain_bearing.cpp): the 12B sprocket has 39 faces, not 54. The sprocket is a body cut by tooth
and roller profiles; cut now unifies the faces a cylinder seam had split. Volume, area, bounding box, tags are equal to
the golden to 1e-6, so the geometry is the same and only the split faces are gone.
- src/cpp/tests/golden/std_sprocket.json (faces 54 -> 39, edges 156 -> 111) and std_sprocket_unbored.json (35 -> 26 faces,
99 -> 72 edges): these files are recorded from the 2.2.6 Python reference SDK, which does not clean after a cut, and the
suite refuses SCAD_REGOLDEN in CI, so they cannot be re-recorded there. I edited the four numbers by hand after
comparing the port's whole output with the golden field by field: nothing else differs. Anyone who re-records from a
reference that cleans will get the same numbers.
- test_signatures_match_python: cut_rsolid has the keyword `clean` now.
- OCCT guard audit: the trial blend of the new split-faces probe built BRepFilletAPI_Make* outside occt_guard. It runs
under occt_guard now (a crash inside is a KernelError, which the diagnosis already swallows).
- clang-format 18.1.8 (installed from pip into a scratch venv): blends.cpp and blend_diagnosis.cpp.
CHECKED HERE: src/cpp/tests/python 556 passed (2 failures, test_locator_checks and test_failures, are Windows-only and
did not fail in CI), check_occt_guard --strict 0, check_format.sh clean. The doctest executables were not built here;
the CI run of this commit is the check for them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DECISION: only wording. ops_projection.cpp's loop over Part::bodies() stays (it has one element and the loop
shared the code with the appearance carrier); its comment said "every body of a multi-body part". The
on_split comment in the Python boolean test said the pieces of a split cut are "multi-body parts".
WHY: a Part holds exactly one solid since "part: a Part holds exactly one solid" in this series (the owner's
decision after the discussion recorded in design-docs/part-holds-one-solid.md: several solids side by side are
notebook values, not a Part). A comment that says otherwise sends the next reader to the withdrawn design.
No code changes, so the module that was built and verified is unaffected.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- A cut that splits the body is no longer refused: cut_rsolid(on_split="pieces")
(the default) returns every piece as list[Solid] ordered by centroid, recorded as
make_cut_rsolid_list with piece_order=centroid and replayed in that order;
on_split="error" keeps the strict contract. One-piece cuts are unchanged.
- Pieces become bodies: make_part_rpart(body=pieces) -> body_1..n,
bodies={"bar": pieces} -> bar_1..n.
- Overlapping bodies are allowed and warned: inspect_body_overlaps_rlist and a
BodyOverlapWarning when the definition is built.
- Multi-body definitions use profile simplecad-part-definition-3 (new schema);
profile 2 is back to its dev bytes, so profile-2 readers refuse them.
- part_from_bodies: the implicit-Part rule (all open bodies, named by variable).
- Skill pages, API docs, stubs, design doc section 9, SDK defect 24.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The modeling API (shapes, operators, sketches, products, queries, the reactive graph) is implemented in
C++20 on OpenCASCADE (src/cpp) and ships inside the wheel as simplecadapi._cpp. The Python layers that stay
Python (runtime, build, artifacts, editor, inspect, exporter, translators, scene) run on it unchanged; the
previous Python test suite passes on the new engine.
Layout: src/cpp and src/simplecadapi side by side, one distribution built by scikit-build-core.
simplecadapi.core, .operators.*, .ql, .std.* and the other legacy modules are real forwarding modules; the
Python adapter layer is simplecadapi/_glue. OCP is no longer a dependency and nothing imports it.
Release: .github/workflows/release.yml builds wheels for Linux x86_64 and aarch64, macOS arm64 and Windows
x86_64 (Python 3.10-3.13) against one static OCCT, runs the test suite on the Linux wheels and publishes to
GitHub and PyPI; ci.yml caches the static OCCT for the test jobs.
Errors: every message the library writes is English; the tag-validation and semantic-query errors render in
full with possible causes and fixes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>