Class: QgsMesh¶
Mesh - vertices, edges and faces
Methods
Remove all vertices, edges and faces |
|
Returns whether the mesh contains at mesh elements of given type |
|
Returns an edge at the index |
|
Returns number of edge |
|
Returns a face at the index |
|
Returns number of faces |
|
Returns a vertex at the index |
|
Returns number of vertices |
Static Methods
Compare two faces, return |
Attributes
- class qgis.core.QgsMesh¶
Bases:
object
- Edge = 2¶
- class ElementType¶
Bases:
int
- Face = 4¶
- Vertex = 1¶
- static compareFaces(face1: Iterable[int], face2: Iterable[int]) bool [source]¶
Compare two faces, return
True
if they are equivalent : same indexes and same clock wiseAdded in version 3.16.
- Parameters:
face1 (Iterable[int])
face2 (Iterable[int])
- Return type:
bool
- contains(self, type: QgsMesh.ElementType) bool [source]¶
Returns whether the mesh contains at mesh elements of given type
Added in version 3.14.
- Parameters:
type (QgsMesh.ElementType)
- Return type:
bool
- edge(self, index: int) Tuple[int, int] [source]¶
Returns an edge at the index
Added in version 3.14.
- Parameters:
index (int)
- Return type:
Tuple[int, int]
- face(self, index: int) List[int] [source]¶
Returns a face at the index
- Parameters:
index (int)
- Return type:
List[int]