Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused private method QgsTopologicalMesh::facesCanBeJoinedWith…
…CommonIndex()
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent a499a30 commit ff66127
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/core/mesh/qgstopologicalmesh.cpp
Expand Up @@ -487,17 +487,6 @@ QgsMeshVertexCirculator QgsTopologicalMesh::vertexCirculator( int vertexIndex )
return QgsMeshVertexCirculator( *this, vertexIndex );
}

bool QgsTopologicalMesh::facesCanBeJoinedWithCommonIndex( const QgsMeshFace &face1, const QgsMeshFace &face2, int commonIndex )
{
int commonVertexPosition1 = vertexPositionInFace( commonIndex, face1 );
int commonVertexPosition2 = vertexPositionInFace( commonIndex, face2 );

bool canBejoined = ( face1.at( ( commonVertexPosition1 + 1 ) % face1.size() ) == face2.at( ( commonVertexPosition2 - 1 + face2.size() ) % face2.size() ) ) ||
( face1.at( ( commonVertexPosition1 - 1 + face1.size() ) % face1.size() ) == face2.at( ( commonVertexPosition2 + 1 ) % face2.size() ) );

return canBejoined;
}

QSet<int> QgsTopologicalMesh::concernedFacesBy( const QList<int> faceIndexes ) const
{
QSet<int> faces;
Expand Down
4 changes: 0 additions & 4 deletions src/core/mesh/qgstopologicalmesh.h
Expand Up @@ -303,10 +303,6 @@ class CORE_EXPORT QgsTopologicalMesh
QgsMeshEditingError &error,
bool allowUniqueSharedVertex );


//! Returns whether the two faces can be joined sharing the index \a commonIndex
static bool facesCanBeJoinedWithCommonIndex( const QgsMeshFace &face1, const QgsMeshFace &face2, int commonIndex );

//! Returns all faces indexes that are concerned by the face with index in \a faceIndex, that is sharing a least one vertex or one edge
QSet<int> concernedFacesBy( const QList<int> faceIndexes ) const;

Expand Down

0 comments on commit ff66127

Please sign in to comment.