Class: QgsMeshEditForceByPolylines

class qgis.core.QgsMeshEditForceByPolylines

Bases: QgsMeshEditForceByLine

Class 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()

New in version 3.22.

QgsMeshEditForceByPolylines() Constructor

QgsMeshEditForceByPolylines(QgsMeshEditForceByPolylines)

Methods

addLineFromGeometry

Adds a input forcing line geometry in rendering coordinates

addLinesFromGeometries

Adds a list of input forcing lines geometry in rendering coordinates

isFinished

rtype:

bool

text

rtype:

str

addLineFromGeometry(self, geom: QgsGeometry)

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

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

isFinished(self) bool
Return type:

bool

text(self) str
Return type:

str