-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 refinement crash when face has more than 4 vertices #50556
Conversation
Wouldn't it be useful if refinement would still work on more than four vertices faces but with a different logic? This could be handled in one step by refine face, when there are more than 4 vertices. |
good point @uclaros, again ! |
This is what I meant, this new command could still be triggered by the same Refine Face action. If there are less than 4 vertices, use the old refinement logic. If there are more than 4, use the new triangulate logic. |
not sure, it will not exactly a refinement but a triangulation, not exactly the same. This refinement consists of adding new vertices in middle of edges. Triangulation, there i no more vertices, only a triangulation of a polygon. This is not exactly the same operation. |
OK, still the two actions could occupy the same position in the context menu and only one of them visible at a time, depending on number of vertices. |
Yes, when this new action will be implemented, this action will replace the refinement action if the current face has more than 4 vertices.
But it is another story, and I think it could a be a new feature PR in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
The backport to
stderr
stdout
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-3_22 release-3_22
# Navigate to the new working tree
cd .worktrees/backport-release-3_22
# Create a new branch
git switch --create backport-50556-to-release-3_22
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick f982262b8373bd71c061b044cff1ea49258a3bf5,67a365be13fd39cc21450117eb0799658034d754
# Push it to GitHub
git push --set-upstream origin backport-50556-to-release-3_22
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-3_22 Then, create a pull request where the |
* fix refinment crash when face has more than 4 vertices * complete test
fix #50541
The issue comes from that refinement of faces with vertices count greater than 4 is not allowed.
Also change the UI to not purpose to refine face if its vertices count is greater than 4.
Thanks @uclaros for your tries and to have report it!