-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
suggest to fix topological mesh error when starting mesh editing #50310
Conversation
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.
Just some text fixes
7309e54
to
49b8da8
Compare
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.
Looks good, minor docstring changes.
It might be useful to add some reporting on the changes made by QgsMeshEditor::fixError()
, like x faces removed
/y vertices removed
Co-authored-by: Stefanos Natsis <[email protected]>
Co-authored-by: Stefanos Natsis <[email protected]>
Co-authored-by: Stefanos Natsis <[email protected]>
Co-authored-by: Stefanos Natsis <[email protected]>
29d6f00
to
2b4395a
Compare
fix #50041 and #50062
It may happen that an editable mesh has topological errors that could prevent entering edit mode. The worst case is when the user edits a mesh, QGIS crashes and when he tries to restart editing, a topological error appeared and the user is unable to
modify the mesh... I didn't identify the reason because there is a check before saving the mesh, but apparently it happened. This leads to losing all the work on the mesh, even the saved work.
So, with this PR, when a topological prevents to enter editing mode, the following message box appears:
(here we can see a "manifold face", that is a face that cover another one, a quad).
If the user clicks "Yes", the mesh is fixed: