Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Second-Body Extrude Selection #5456

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

max-mrgrsk
Copy link
Collaborator

Refactors getPathToExtrudeForSegmentSelection to derive the extrude from the segment or sweepEdge artifact rather than scanning by path ID. Thanks @Irev-Dev for help !

This ensures the correct body is always selected when adding fillets/chamfers (previously, the second extrude could mistakenly point to the first). (in piped cases)

Introduces getSweepArtifactFromSelection to retrieve the parent sweep from either a segment or a sweepEdge.

Adds two new test cases verifying that a second extrude referencing the first extrude’s face is correctly identified (both piped and standalone).

We now reliably link selections (segments/edges) to the right extrude, eliminating the “fillet on the wrong body” bug.

Closes: #5358

@max-mrgrsk max-mrgrsk linked an issue Feb 21, 2025 that may be closed by this pull request
Copy link

qa-wolf bot commented Feb 21, 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!

Copy link

vercel bot commented Feb 21, 2025

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Feb 24, 2025 8:17pm

@max-mrgrsk max-mrgrsk self-assigned this Feb 21, 2025
@max-mrgrsk max-mrgrsk added the bug Something isn't working label Feb 21, 2025
@max-mrgrsk max-mrgrsk added this to the v1 Modeling App Launch milestone Feb 21, 2025
Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.02%. Comparing base (484da28) to head (be7b2b8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5456   +/-   ##
=======================================
  Coverage   86.02%   86.02%           
=======================================
  Files          95       95           
  Lines       35754    35754           
=======================================
  Hits        30757    30757           
  Misses       4997     4997           
Flag Coverage Δ
wasm-lib 86.02% <ø> (ø)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: fillet sticks to original body instead of selected feature
1 participant