Skip to content

Commit

Permalink
fix typo
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 5f6ac02 commit d3ce7d5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmesheditor.cpp
Expand Up @@ -315,7 +315,7 @@ bool QgsMeshEditor::faceCanBeAddedWithNewVertices( const QList<int> &verticesInd

// if we are here, the face is convex and not flat

// Now we chekc the topology of the potential new face
// Now we check the topology of the potential new face
int size = face.size();
QList<QgsMeshVertex> allVertices;
allVertices.reserve( verticesIndex.size() );
Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmesheditor.h
Expand Up @@ -111,7 +111,7 @@ class CORE_EXPORT QgsMeshEditor : public QObject
bool faceCanBeAdded( const QgsMeshFace &face ) const;

/**
* Returns TRUE if a face formed by some vertices con be added to the mesh.
* Returns TRUE if a face formed by some vertices can be added to the mesh.
* The vertices are defined by \a verticesIndex that contains the index of already existing vertices
* or the value -1 if the vertex is not existing for now in the mesh. The positions of new vertices are stored in \a newVertices
* sorted by their positions in the face.
Expand Down
4 changes: 2 additions & 2 deletions src/core/mesh/qgstopologicalmesh.cpp
Expand Up @@ -672,8 +672,8 @@ QgsMeshEditingError QgsTopologicalMesh::checkTopologyOfVerticesAsFace( const QVe

QgsMeshEditingError QgsTopologicalMesh::counterClockwiseFaces( QgsMeshFace &face, QgsMesh *mesh )
{
// First check if the topology of the face , then put it counter clockwise if needed
// If the index are not well ordered (edges intersect), invalid face
// First check the topology of the face, then put it counter clockwise if needed
// If the indexes are not well ordered (edges intersect), invalid face
int faceSize = face.count();
if ( faceSize < 3 )
return QgsMeshEditingError( Qgis::MeshEditingErrorType::FlatFace, -1 );
Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgstopologicalmesh.h
Expand Up @@ -307,7 +307,7 @@ class CORE_EXPORT QgsTopologicalMesh
static QgsMeshEditingError counterClockwiseFaces( QgsMeshFace &face, QgsMesh *mesh );

/**
* Checks the topology of the \a vertices as the are contained in a face and returns indication on direction.
* Checks the topology of the \a vertices as they are contained in a face and returns indication on direction.
* If \a direction > 0 the face would be clockwise
*
* \since QGIS 3.28
Expand Down

0 comments on commit d3ce7d5

Please sign in to comment.