Skip to content

Commit

Permalink
fix spelling and SIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and github-actions[bot] committed Jan 21, 2023
1 parent e5006bb commit 5f6ac02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions python/core/auto_generated/mesh/qgsmesheditor.sip.in
Expand Up @@ -88,12 +88,16 @@ Tries to fix the topological ``error`` in the mesh. Returns ``False`` if the fix
.. versionadded:: 3.28
%End

bool faceCanBeAdded( const QgsMeshFace &face );
bool faceCanBeAdded( const QgsMeshFace &face ) const;
%Docstring
Returns ``True`` if a ``face`` can be added to the mesh

.. note::

All vertices related to this face must be already in the mesh.
%End

bool isFaceGeometricallyCompatible( const QgsMeshFace &face );
bool isFaceGeometricallyCompatible( const QgsMeshFace &face ) const;
%Docstring
Returns ``True`` if the face does not intersect or contains any other elements (faces or vertices)
The topological compatibility is not checked
Expand Down
10 changes: 5 additions & 5 deletions src/core/mesh/qgsmesheditor.cpp
Expand Up @@ -341,18 +341,18 @@ bool QgsMeshEditor::faceCanBeAddedWithNewVertices( const QList<int> &verticesInd
if ( !circulator.goBoundaryClockwise() ) //vertex not on boundary
return false;

int prevOppositVertex = circulator.oppositeVertexClockwise();
if ( prevOppositVertex == nextIndex ) //manifold face
int prevOppVertex = circulator.oppositeVertexClockwise();
if ( prevOppVertex == nextIndex ) //manifold face
return false;

if ( !circulator.goBoundaryCounterClockwise() )
return false;

int nextOppositVertex = circulator.oppositeVertexCounterClockwise();
if ( nextOppositVertex == prevIndex ) //manifold face
int nextOppVertex = circulator.oppositeVertexCounterClockwise();
if ( nextOppVertex == prevIndex ) //manifold face
return false;

if ( nextIndex != nextOppositVertex && prevIndex != prevOppositVertex ) //unique shared vertex
if ( nextIndex != nextOppVertex && prevIndex != prevOppVertex ) //unique shared vertex
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmesheditor.h
Expand Up @@ -140,7 +140,7 @@ class CORE_EXPORT QgsMeshEditor : public QObject
*
* \since QGIS 3.28
*/
QgsMeshEditingError addFaceWithNewVertices( const QList<int> &vertexIndexes, const QList<QgsMeshVertex> &newVertices );
QgsMeshEditingError addFaceWithNewVertices( const QList<int> &vertexIndexes, const QList<QgsMeshVertex> &newVertices ); SIP_SKIP

//! Removes faces \a faces to the mesh, returns topological errors if this operation fails (operation is not realized)
QgsMeshEditingError removeFaces( const QList<int> &facesToRemove );
Expand Down

0 comments on commit 5f6ac02

Please sign in to comment.