feat: commands for merge and intersect#1665
Conversation
Boolean operations on body were executed using the core API. For a number of reasons it is agreed to switch to command based implementation which simplifies treatment of occurrences and fixes some known issues. Note that 1) Combine.Merge operation does not support keeping the other bodies 2) Subtract is invoked from Combine.Intersect passing subtract_from_target = true
remove files accidentally committed
|
@RobPasMue @jonahrb @b-matteo Leaving this PR in draft mode until the API server is updated, but feel free to review and add suggestions |
Apply style change from pre-commit and correct undefined variable
…b.com/ansys/pyansys-geometry into feat/commands_for_merge_and_intersect
remove unnecessary files
Remove unnecessary files
|
@smereu - please add yourself as "Assignee" of the PR and modify the PR description according to the guidelines whenever you get the chance. This allows us to properly maintain the repository and easily determine features and implementations |
…b.com/ansys/pyansys-geometry into feat/commands_for_merge_and_intersect
fix issues with commands and adjust unit tests
…b.com/ansys/pyansys-geometry into feat/commands_for_merge_and_intersect
RobPasMue
left a comment
There was a problem hiding this comment.
Some comments... I still need to process this PR more in depth. My feeling is that there are some unnecessary operations like the final if not keep_other:... or the update_design_inplace.
remove unused option
remove unused argument
For versions prior to 25.2 we have to call the core API methods for boolean since proto changes made in 25.2 are needed for the command implementation
fix use of version and mismatched arguments
…b.com/ansys/pyansys-geometry into feat/commands_for_merge_and_intersect
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## blitz #1665 +/- ##
==========================================
- Coverage 91.17% 91.02% -0.15%
==========================================
Files 91 91
Lines 7924 7959 +35
==========================================
+ Hits 7225 7245 +20
- Misses 699 714 +15 ☔ View full report in Codecov by Sentry. |
RobPasMue
left a comment
There was a problem hiding this comment.
Apart from my last comment - LGTM! Let's get it merged soon =)
remove unnecessary argument
RobPasMue
left a comment
There was a problem hiding this comment.
We should revert these breaking changes - sorry, I overlooked them
Description
This PR switches the implementation of the boolean operations unite(merge) intersect and subtract to using commands rather than core APIs.
Notes
Issue linked
Please mention the issue number or describe the problem this pull request addresses.
Checklist
feat: extrude circle to cylinder)