Skip to content
Permalink
Browse files
Remove unused private method QgsTopologicalMesh::facesCanBeJoinedWith…
…CommonIndex()
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent a499a30 commit ff661270cc7009438308eadd3ba880d844d3fbc7
Showing with 0 additions and 15 deletions.
  1. +0 −11 src/core/mesh/qgstopologicalmesh.cpp
  2. +0 −4 src/core/mesh/qgstopologicalmesh.h
@@ -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;
@@ -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;

0 comments on commit ff66127

Please sign in to comment.