Class: QgsMeshEditForceByPolylines

Derived from QgsMeshEditForceByLine that forces mesh based on polyline.

Forcing lines consist of line that the faces are forced to follow, that is edges of encountered faces have to be on theses lines.

Caller of this class has to add the lines from QgsGeometry instances with addLineFromGeometry() or addLinesFromGeometries() before applying the edition with QgsMeshEditor.advancedEdit()

Added in version 3.22.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMeshEditForceByPolylines

Base classes

QgsMeshEditForceByLine

Forces mesh editing based on a line.

QgsMeshAdvancedEditing

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

Methods

addLineFromGeometry

Adds a input forcing line geometry in rendering coordinates

addLinesFromGeometries

Adds a list of input forcing lines geometry in rendering coordinates

class qgis.core.QgsMeshEditForceByPolylines[source]

Bases: QgsMeshEditForceByLine

addLineFromGeometry(self, geom: QgsGeometry)[source]

Adds a input forcing line geometry in rendering coordinates

Note

if the geometry is not 3D, the default Z value will be used for the Z value of the geometry’s vertices. This default Z value has to be set before adding the geometry (setDefaultZValue()

Parameters:

geom (QgsGeometry)

addLinesFromGeometries(self, geometries: Iterable[QgsGeometry])[source]

Adds a list of input forcing lines geometry in rendering coordinates

Note

if the geometry is not 3D, the default Z value will be used for the Z value of the geometry’s vertices. This default Z value has to be set before adding the geometry (setDefaultZValue()

Parameters:

geometries (Iterable[QgsGeometry])