Class: QgsTriangulatedSurface¶
Triangulated surface geometry type.
A TIN (triangulated irregular network) is a PolyhedralSurface consisting only of triangle patches.
Added in version 3.40.
Class Hierarchy¶
Base classes¶
Polyhedral surface geometry type. |
|
Surface geometry type. |
|
Abstract base class for all geometries. |
Methods
Adds a triangle to the geometry, transferring ownership to the polyhedral surface. |
|
Sets all triangles, transferring ownership to the polyhedral surface. |
|
Returns the triangle with the specified index. |
- class qgis.core.QgsTriangulatedSurface[source]¶
Bases:
QgsPolyhedralSurface
- addTriangle(self, triangle: QgsTriangle | None)[source]¶
Adds a triangle to the geometry, transferring ownership to the polyhedral surface.
- Parameters:
triangle (Optional[QgsTriangle])
- setTriangles(self, triangles: Iterable[QgsTriangle])[source]¶
Sets all triangles, transferring ownership to the polyhedral surface.
- Parameters:
triangles (Iterable[QgsTriangle])
- triangleN(self, index: int) QgsPolygon [source]¶
Returns the triangle with the specified
index
.- Raises:
IndexError – if no polygon with the specified index exists.
- Parameters:
index (int)
- Return type: