Class: QgsMeshAdvancedEditing

Abstract class that can be derived to implement advanced editing on mesh

To apply the advanced editing, a pointer to an instance of a derived class is passed in the method QgsMeshEditor.advancedEdit().

Added in version 3.22.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMeshAdvancedEditing

Subclasses

QgsMeshEditForceByLine

Class derived from QgsMeshAdvancedEditing that forces mesh based on a line

QgsMeshEditRefineFaces

Class that can do a refinement of faces of a mesh.

QgsMeshTransformVerticesByExpression

Class that can transform vertices of a mesh by expression

QgsMeshEditingDelaunayTriangulation

Class that can be used with QgsMeshEditor.advancedEdit() to add triangle faces to a mesh created by a Delaunay triangulation on provided existing vertex.

Methods

clear

Removes all data provided to the editing or created by the editing

isFinished

Returns whether the advanced edit is finished, if not, this edit has to be applied again with QgsMeshEditor.advancedEdit() until is finished returns True

message

Returns a message that can be provided by the advanced editing when applying is done

setInputFaces

Sets the input faces indexes that will be used for the editing

setInputVertices

Sets the input vertices indexes that will be used for the editing

text

Returns a short text string describing what this advanced edit does.

class qgis.core.QgsMeshAdvancedEditing[source]

Bases: object

clear(self)[source]

Removes all data provided to the editing or created by the editing

isFinished(self) bool[source]

Returns whether the advanced edit is finished, if not, this edit has to be applied again with QgsMeshEditor.advancedEdit() until is finished returns True

Return type:

bool

message(self) str[source]

Returns a message that can be provided by the advanced editing when applying is done

Return type:

str

setInputFaces(self, faceIndexes: Iterable[int])[source]

Sets the input faces indexes that will be used for the editing

Parameters:

faceIndexes (Iterable[int])

setInputVertices(self, verticesIndexes: Iterable[int])[source]

Sets the input vertices indexes that will be used for the editing

Parameters:

verticesIndexes (Iterable[int])

text(self) str[source]

Returns a short text string describing what this advanced edit does. Default implementation return a void string.

Return type:

str