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

suggest to fix topological mesh error when starting mesh editing #50310

Merged
merged 9 commits into from
Oct 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Sipify
vcloarec committed Oct 20, 2022
commit 2b4395a05ce321f8a3e1a76b9fc3aa99686caf67
5 changes: 2 additions & 3 deletions python/core/auto_generated/mesh/qgsmesheditor.sip.in
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ The caller takes ownership.

QgsMeshEditingError initialize();
%Docstring
Initializes the mesh editor and returns first error if the internal native mesh have topologic errors
Initializes the mesh editor and returns first error if the internal native mesh has topological errors
%End

QgsMeshEditingError initializeWithErrorsFix();
@@ -81,10 +81,9 @@ and returns error if there is one that couldn't be fixed
.. versionadded:: 3.28
%End


bool fixError( const QgsMeshEditingError &error );
%Docstring
Tries to fix the topological ``error`` in the mesh. Returns false if the fix fails
Tries to fix the topological ``error`` in the mesh. Returns ``False`` if the fix fails

.. versionadded:: 3.28
%End
6 changes: 3 additions & 3 deletions python/core/auto_generated/mesh/qgsmeshlayer.sip.in
Original file line number Diff line number Diff line change
@@ -775,10 +775,10 @@ This operation will disconnect the mesh layer from the data provider and removes
%Docstring
Starts editing of the mesh frame. Coordinate ``transform`` used to initialize the triangular mesh if needed.
This operation will disconnect the mesh layer from the data provider and removes all existing dataset group.
Returns ``False`` if starting fails and the error that is the reason (No error, if the mesh is not editable or already in edit mode).
Returns ``False`` if starting fails and the ``error`` that is the reason (No error, if the mesh is not editable or already in edit mode).

If fixErrors is set to ``True``, errors will be attempted to be fixed.
In that case returns ``False`` if there is an error that could not be fixed and the remaining error.
If ``fixErrors`` is set to ``True``, errors will be attempted to be fixed.
In that case returns ``False`` if there is an error that could not be fixed and the remaining ``error``.

.. versionadded:: 3.28
%End