Skip to content

Add CSG operations to the artifact graph#6104

Merged
jtran merged 7 commits intomainfrom
jtran/csg-artifacts
Apr 11, 2025
Merged

Add CSG operations to the artifact graph#6104
jtran merged 7 commits intomainfrom
jtran/csg-artifacts

Conversation

@jtran
Copy link
Contributor

@jtran jtran commented Apr 2, 2025

Resolves #6103.

It's surprising to me that the boolean commands point to their constituent path IDs. My understanding is that they're supposed to be solids, not paths.

@qa-wolf
Copy link

qa-wolf bot commented Apr 2, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@vercel
Copy link

vercel bot commented Apr 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Apr 11, 2025 4:57am

@jtran jtran force-pushed the jtran/csg-artifacts branch from 705deaf to fd8c5f8 Compare April 11, 2025 04:40
@jtran jtran marked this pull request as ready for review April 11, 2025 04:42
@jtran jtran requested a review from a team April 11, 2025 04:42
@Irev-Dev
Copy link
Contributor

It's surprising to me that the boolean commands point to their constituent path IDs. My understanding is that they're supposed to be solids, not paths.

I think this is just the usual id's transforming, i.e. segment ids become edge ids, and I guess the path id just becomes the main id for the solid.

If you take a fairly complex solid, i.e. one with lots of sketchOnFaces, stacked on each other, and then you turn the engine selection filter to ['object'], then when you click the object, the id that comes back is the path id from the first profile that was extruded, so at least it's consistent.

@codecov
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 87.75510% with 12 lines in your changes missing coverage. Please review.

Project coverage is 84.95%. Comparing base (0d89969) to head (fd8c5f8).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
rust/kcl-lib/src/execution/artifact.rs 85.71% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6104      +/-   ##
==========================================
- Coverage   84.96%   84.95%   -0.01%     
==========================================
  Files         108      108              
  Lines       45017    45115      +98     
==========================================
+ Hits        38247    38327      +80     
- Misses       6770     6788      +18     
Flag Coverage Δ
rust 84.95% <87.75%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@Irev-Dev Irev-Dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jtran jtran enabled auto-merge (squash) April 11, 2025 05:05
@jtran jtran merged commit 5832890 into main Apr 11, 2025
58 of 59 checks passed
@jtran jtran deleted the jtran/csg-artifacts branch April 11, 2025 05:16
modeling-app-github-app bot pushed a commit that referenced this pull request Apr 11, 2025
* Add CSG operations to the artifact graph

* Add tool IDs for subtract

* Fix names to match modeling-cmds now that it's done

* Update output since adding CSG ops

* Update formatting

* Add extra solid ids to the graph

* Fix to not add duplicates to the graph
jacebrowning added a commit that referenced this pull request Apr 11, 2025
* main:
  #6182 Improve calculate_circle_center (#6192)
  make sure the nix flake never breaks (#6273)
  Add CSG operations to the artifact graph (#6104)
  refactor: Change to use topLevelModule helper function (#6264)
  Remove experimental warning on whole-module imports (#6240)
  Insert a newline between block comments and attributes (#6250)
  Remove import function from std (#6241)
  Fix vscode lsp bugs (#6271)
  bump kcl friends (#6272)
  Bump modeling api & pull thru csg endpoints (#6245)
  Franknoirot/adhoc/improve e2e (#6265)
  Fix URL encoded names after rename to Zoo Design Studio (#6269)
  Repetitive structs removed for import file extensions (#6211)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSG in the artifact graph so that we can traverse for selections

2 participants