QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Mesh - vertices, edges and faces. More...
#include <qgsmeshdataprovider.h>
Public Types | |
enum | ElementType { Vertex = 1 , Edge = 2 , Face = 4 } |
Defines type of mesh elements. More... | |
Public Member Functions | |
void | clear () |
Remove all vertices, edges and faces. | |
bool | contains (const ElementType &type) const |
Returns whether the mesh contains at mesh elements of given type. | |
QgsMeshEdge | edge (int index) const |
Returns an edge at the index. | |
int | edgeCount () const |
Returns number of edge. | |
QgsMeshFace | face (int index) const |
Returns a face at the index. | |
int | faceCount () const |
Returns number of faces. | |
QgsMeshVertex | vertex (int index) const |
Returns a vertex at the index. | |
int | vertexCount () const |
Returns number of vertices. | |
Static Public Member Functions | |
static bool | compareFaces (const QgsMeshFace &face1, const QgsMeshFace &face2) |
Compare two faces, return true if they are equivalent : same indexes and same clock wise. | |
Public Attributes | |
QVector< QgsMeshEdge > | edges |
QVector< QgsMeshFace > | faces |
QVector< QgsMeshVertex > | vertices |
Mesh - vertices, edges and faces.
Definition at line 58 of file qgsmeshdataprovider.h.
enum QgsMesh::ElementType |
Defines type of mesh elements.
Enumerator | |
---|---|
Vertex | |
Edge | |
Face |
Definition at line 65 of file qgsmeshdataprovider.h.
void QgsMesh::clear | ( | ) |
Remove all vertices, edges and faces.
Definition at line 170 of file qgsmeshdataprovider.cpp.
|
static |
Compare two faces, return true
if they are equivalent : same indexes and same clock wise.
Definition at line 177 of file qgsmeshdataprovider.cpp.
bool QgsMesh::contains | ( | const ElementType & | type | ) | const |
Returns whether the mesh contains at mesh elements of given type.
Definition at line 197 of file qgsmeshdataprovider.cpp.
QgsMeshEdge QgsMesh::edge | ( | int | index | ) | const |
Returns an edge at the index.
Definition at line 163 of file qgsmeshdataprovider.cpp.
int QgsMesh::edgeCount | ( | ) | const |
QgsMeshFace QgsMesh::face | ( | int | index | ) | const |
Returns a face at the index.
Definition at line 156 of file qgsmeshdataprovider.cpp.
int QgsMesh::faceCount | ( | ) | const |
Returns number of faces.
Definition at line 216 of file qgsmeshdataprovider.cpp.
QgsMeshVertex QgsMesh::vertex | ( | int | index | ) | const |
Returns a vertex at the index.
Definition at line 149 of file qgsmeshdataprovider.cpp.
int QgsMesh::vertexCount | ( | ) | const |
Returns number of vertices.
Definition at line 211 of file qgsmeshdataprovider.cpp.
QVector<QgsMeshEdge> QgsMesh::edges |
Definition at line 113 of file qgsmeshdataprovider.h.
QVector<QgsMeshFace> QgsMesh::faces |
Definition at line 114 of file qgsmeshdataprovider.h.
QVector<QgsMeshVertex> QgsMesh::vertices |
Definition at line 112 of file qgsmeshdataprovider.h.