Repository navigation
Add assy imprint tracking - #2142
Draft
adam-urbanczyk wants to merge 7 commits into
Draft
adam-urbanczyk wants to merge 7 commits into
adam-urbanczyk wants to merge 7 commits into
Conversation
adam-urbanczyk
marked this pull request as draft
December 4, 2026 11:46
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2142 +/- ##
==========================================
+ Coverage 95.87% 95.88% +0.01%
==========================================
Files 30 30
Lines 9710 9735 +25
Branches 1472 1474 +2
==========================================
+ Hits 9309 9334 +25
Misses 246 246
Partials 155 155 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
shimwell
added a commit
to fusion-energy/cad_to_dagmc
that referenced
this pull request
Dec 4, 2026
CadQuery/cadquery#2142 records an Assembly.imprint in Assembly.imprinted, and clears it when the assembly is changed. add_cadquery_object now notes whether the object it is given is an imprinted assembly, and when that assembly is the only object in the model the exports skip their own imprint, on both backends, as it would only repeat the work. Objects from separate add_cadquery_object calls have not been imprinted against each other, so they are still imprinted. The imprint argument is still validated when the imprint is skipped. The flag is read with getattr, so CadQuery without #2142 imprints as before. CI runs the #2142 branch until it is merged.
1 of 9 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains some qualit of life improvements for the
Assemblyclass.imprintedandimprintingModefields for bookkeeping. Toggled byimprint()andadd().addused on subassemblies updates the.objectsfield of all parents.removeused on subassemblies updates the.objectsfield of all parents.