|
| QgsMeshEditor (QgsMesh *nativeMesh, QgsTriangularMesh *triangularMesh, QObject *parent=nullptr) |
| Constructor with a specific mesh nativeMesh and an associatd triangular mesh triangularMesh. More...
|
|
| QgsMeshEditor (QgsMeshLayer *meshLayer) |
| Constructor with a specified layer meshLayer. More...
|
|
| ~QgsMeshEditor () |
|
QgsMeshEditingError | addFace (const QVector< int > &vertexIndexes) |
| Adds a face face to the mesh with vertex indexes vertexIndexes, returns topological errors if this operation fails (operation is not realized) More...
|
|
QgsMeshEditingError | addFaces (const QVector< QgsMeshFace > &faces) |
| Adds faces faces to the mesh, returns topological errors if this operation fails (operation is not realized) More...
|
|
int | addPointsAsVertices (const QVector< QgsPoint > &point, double tolerance) |
| Adds points as vertices in triangular mesh coordinate in the mesh. More...
|
|
int | addVertices (const QVector< QgsMeshVertex > &vertices, double tolerance) |
| Adds vertices in triangular mesh coordinate in the mesh. More...
|
|
void | advancedEdit (QgsMeshAdvancedEditing *editing) |
| Applies an advance editing on the edited mesh, see QgsMeshAdvancedEditing. 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 | canBeTransformed (const QList< int > &facesToCheck, const std::function< const QgsMeshVertex(int)> &transformFunction) const |
| Returns true if faces with index in transformedFaces can be transformed without obtaining topologic or geometrical errors considering the transform function transformFunction. More...
|
|
void | changeCoordinates (const QList< int > &verticesIndexes, const QList< QgsPoint > &newCoordinates) |
| Changes the (X,Y,Z) coordinates values of the vertices with indexes in vertices indexes with the values in newValues. More...
|
|
void | changeXYValues (const QList< int > &verticesIndexes, const QList< QgsPointXY > &newValues) |
| Changes the (X,Y) coordinates values of the vertices with indexes in verticesIndexes with the values in newValues. More...
|
|
void | changeZValues (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...
|
|
bool | checkConsistency (QgsMeshEditingError &error) const |
| Return true if the edited mesh is consistent. More...
|
|
QgsMeshDatasetGroup * | createZValueDatasetGroup () |
| Creates and returns a scalar dataset group with value on vertex that is can be used to access the Z value of the edited mesh. 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...
|
|
bool | edgeIsClose (QgsPointXY point, double tolerance, int &faceIndex, int &edgePosition) |
| Returns true if an edge of face is closest than the tolerance from the point in triangular mesh coordinate Returns also the face index and the edge position in faceIndex and edgePosition. More...
|
|
QgsRectangle | extent () const |
| Returns the extent of the edited mesh. More...
|
|
bool | faceCanBeAdded (const QgsMeshFace &face) |
| Returns true if a face can be added to the mesh. More...
|
|
bool | faceCanBeSplit (int faceIndex) const |
| Returns true if face with index faceIndex can be split. More...
|
|
bool | fixError (const QgsMeshEditingError &error) |
| Tries to fix the topological error in the mesh. More...
|
|
void | flipEdge (int vertexIndex1, int vertexIndex2) |
| Flips edge (vertexIndex1, vertexIndex2) More...
|
|
QList< int > | freeVerticesIndexes () const |
| Returns all the free vertices indexes. More...
|
|
QgsMeshEditingError | initialize () |
| Initializes the mesh editor and returns first error if the internal native mesh has topological errors. More...
|
|
QgsMeshEditingError | initializeWithErrorsFix () |
| Initializes the mesh editor. More...
|
|
bool | isFaceGeometricallyCompatible (const QgsMeshFace &face) |
| Returns true if the face does not intersect or contains any other elements (faces or vertices) The topological compatibility is not checked. More...
|
|
bool | isModified () const |
| Returns whether the mesh has been modified. More...
|
|
bool | isVertexFree (int vertexIndex) const |
| Returns whether the vertex with index vertexIndex is a free vertex. More...
|
|
bool | isVertexOnBoundary (int vertexIndex) const |
| Returns whether the vertex with index vertexIndex is on a boundary. More...
|
|
int | maximumVerticesPerFace () const |
| Returns the maximum count of vertices per face that the mesh can support. More...
|
|
void | merge (int vertexIndex1, int vertexIndex2) |
| Merges faces separated by vertices with indexes vertexIndex1 and vertexIndex2. More...
|
|
bool | reindex (bool renumbering) |
| Reindexes the mesh, that is remove unusued index of face and vertices, this operation void the undo/redo stack. More...
|
|
QgsMeshEditingError | removeFaces (const QList< int > &facesToRemove) |
| Removes faces faces to the mesh, returns topological errors if this operation fails (operation is not realized) More...
|
|
QList< int > | removeVerticesFillHoles (const QList< int > &verticesToRemoveIndexes) |
| Removes vertices with indexes in the list verticesToRemoveIndexes in the mesh the surrounding faces AND fills the freed space. More...
|
|
QgsMeshEditingError | removeVerticesWithoutFillHoles (const QList< int > &verticesToRemoveIndexes) |
| Removes vertices with indexes in the list verticesToRemoveIndexes in the mesh removing the surrounding faces without filling the freed space. More...
|
|
void | resetTriangularMesh (QgsTriangularMesh *triangularMesh) |
| Resets the triangular mesh. More...
|
|
int | splitFaces (const QList< int > &faceIndexes) |
| Splits faces with index faceIndexes. More...
|
|
void | stopEditing () |
| Stops editing. More...
|
|
QgsTopologicalMesh & | topologicalMesh () |
| Returns a reference to the topological mesh. More...
|
|
QgsTriangularMesh * | triangularMesh () |
| Returns a pointer to the triangular mesh. More...
|
|
int | validFacesCount () const |
| Returns the count of valid faces, that is non void faces in the mesh. More...
|
|
int | validVerticesCount () const |
| Returns the count of valid vertices, that is non void vertices in the mesh. More...
|
|
QgsMeshVertexCirculator | vertexCirculator (int vertexIndex) const |
| Returns a vertex circulator linked to this mesh around the vertex with index vertexIndex. More...
|
|