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

Inheritance diagram of qgis.core.QgsTriangulatedSurface

Base classes

QgsPolyhedralSurface

Polyhedral surface geometry type.

QgsSurface

Surface geometry type.

QgsAbstractGeometry

Abstract base class for all geometries.

Methods

addTriangle

Adds a triangle to the geometry, transferring ownership to the polyhedral surface.

setTriangles

Sets all triangles, transferring ownership to the polyhedral surface.

triangleN

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:

QgsPolygon