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 withaddLineFromGeometry()
oraddLinesFromGeometries()
before applying the edition withQgsMeshEditor.advancedEdit()
New in version 3.22.
QgsMeshEditForceByPolylines() Constructor
QgsMeshEditForceByPolylines(
QgsMeshEditForceByPolylines
)Methods
Adds a input forcing line geometry in rendering coordinates
Adds a list of input forcing lines geometry in rendering coordinates
- rtype
bool
- 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