Class: QgsMeshDataSourceInterface¶
-
class
qgis.core.
QgsMeshDataSourceInterface
¶ Bases:
sip.wrapper
Interface for mesh data sources
Mesh is a collection of vertices and faces in 2D or 3D space - vertex - XY(Z) point (in the mesh’s coordinate reference system) - faces - sets of vertices forming a closed shape - typically triangles or quadrilaterals
Base on the underlying data provider/format, whole mesh is either stored in memory or read on demand
Note
The API is considered EXPERIMENTAL and can be changed without a notice
Methods
Returns the mesh face at index
Returns number of faces in the native mesh
Returns the mesh vertex at index
Returns number of vertices in the native mesh
-
face
(self, index: int) → List[int]¶ Returns the mesh face at index
- Parameters
index (int) –
- Return type
List[int]
-
faceCount
(self) → int¶ Returns number of faces in the native mesh
- Return type
int
- Returns
Number of faces in the mesh
-
vertex
(self, index: int) → QgsPoint¶ Returns the mesh vertex at index
- Parameters
index (int) –
- Return type
-
vertexCount
(self) → int¶ Returns number of vertices in the native mesh
- Return type
int
- Returns
Number of vertices in the mesh
-