|
Changes | addFaces (const TopologicalFaces &topologicFaces) |
| Adds faces topologicFaces to the topologic mesh. More...
|
|
Changes | addFreeVertex (const QgsMeshVertex &vertex) |
| Adds a free vertex in the face, that is a vertex tha tis not included or linked with any faces. More...
|
|
Changes | addVertexInFace (int faceIndex, const QgsMeshVertex &vertex) |
| Adds a vertex in the face with index faceIndex. More...
|
|
void | applyChanges (const Changes &changes) |
| Applies the changes. More...
|
|
bool | canBeMerged (int vertexIndex1, int vertexIndex2) const |
| Returns true if faces separated by vertices with indexes vertexIndex1 and vertexIndex2 can be merged. More...
|
|
bool | canBeSplit (int faceIndex) const |
| Returns true if face with index faceIndex can be split. More...
|
|
Changes | changeXYValue (const QList< int > &verticesIndexes, const QList< QgsPointXY > &newValues) |
| Changes the (X,Y) values of the vertices with indexes in vertices indexes with the values in newValues. More...
|
|
Changes | changeZValue (const QList< int > &verticesIndexes, const QList< double > &newValues) |
| Changes the Z values of the vertices with indexes in vertices indexes with the values in newValues. More...
|
|
QgsMeshEditingError | checkConsistency () const |
| Checks the consistency of the topological mesh and return false if there is a consistency issue. More...
|
|
bool | edgeCanBeFlipped (int vertexIndex1, int vertexIndex2) const |
| Returns true if the edge can be flipped (only available for edge shared by two faces with 3 vertices) More...
|
|
QList< int > | facesAroundVertex (int vertexIndex) const |
| Returns the indexes of faces that are around the vertex with index vertexIndex. More...
|
|
QgsMeshEditingError | facesCanBeAdded (const TopologicalFaces &topologicalFaces) const |
| Returns whether the faces can be added to the mesh. More...
|
|
QgsMeshEditingError | facesCanBeRemoved (const QList< int > facesIndexes) |
| Returns whether faces with index in faceIndexes can be removed/ The method an error object with type QgsMeshEditingError::NoError if the faces can be removed, otherwise returns the corresponding error. More...
|
|
int | firstFaceLinked (int vertexIndex) const |
| Returns the index of the first face linked, returns -1 if it is a free vertex or out of range index. More...
|
|
Changes | flipEdge (int vertexIndex1, int vertexIndex2) |
| Flips edge (vertexIndex1, vertexIndex2) The method returns a instance of the class QgsTopologicalMesh::Change that can be used to reverse or reapply the operation. More...
|
|
QList< int > | freeVerticesIndexes () const |
| Returns a list of vertices are not linked to any faces. More...
|
|
Changes | insertVertexInFacesEdge (int faceIndex, int position, const QgsMeshVertex &vertex) |
| Inserts a vertex in the edge of face with index faceIndex at position . More...
|
|
bool | isVertexFree (int vertexIndex) const |
| Returns whether the vertex is a free vertex. More...
|
|
bool | isVertexOnBoundary (int vertexIndex) const |
| Returns whether the vertex is on a boundary. More...
|
|
Changes | merge (int vertexIndex1, int vertexIndex2) |
| Merges faces separated by vertices with indexes vertexIndex1 and vertexIndex2 The method returns a instance of the class QgsTopologicalMesh::Change that can be used to reverse or reapply the operation. More...
|
|
QgsMesh * | mesh () const |
| Returns a pointer to the wrapped mesh. More...
|
|
QVector< int > | neighborsOfFace (int faceIndex) const |
| Returns the indexes of neighbor faces of the face with index faceIndex. More...
|
|
void | reindex () |
| Reindexes faces and vertices, after this operation, the topological mesh can't be edited anymore and only the method mesh can be used to access to the raw mesh. More...
|
|
Changes | removeFaces (const QList< int > facesIndexes) |
| Removes faces with index in faceIndexes. More...
|
|
Changes | removeVertexFillHole (int vertexIndex) |
| Removes the vertex with index vertexIndex. More...
|
|
Changes | removeVertices (const QList< int > &vertices) |
| Removes all the vertices with index in the list vertices If vertices in linked with faces, the operation leads also to remove the faces without filling holes. More...
|
|
bool | renumber () |
| Renumbers the indexes of vertices and faces using the Reverse CutHill McKee Algorithm. More...
|
|
void | reverseChanges (const Changes &changes) |
| Reverses the changes. More...
|
|
Changes | splitFace (int faceIndex) |
| Splits face with index faceIndex The method returns a instance of the class QgsTopologicalMesh::Change that can be used to reverse or reapply the operation. More...
|
|
QgsMeshVertexCirculator | vertexCirculator (int vertexIndex) const |
| Returns a vertex circulator linked to this mesh around the vertex with index vertexIndex. More...
|
|