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

Forces mesh editing based on a line.

QgsMeshEditRefineFaces

Performs refinement of faces of a mesh.

QgsMeshTransformVerticesByExpression

Transforms vertices of a mesh by expression.

QgsMeshEditingDelaunayTriangulation

Can be used with QgsMeshEditor.advancedEdit() to add triangle faces to a mesh created by a Delaunay triangulation on existing vertices.

Methods

clear

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

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

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsMeshAdvancedEditing. See the FAQ for more details.

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

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

virtual 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])

virtual text(self) str[source]

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

Return type:

str