QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QgsMesh Struct Reference

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. More...
 
bool contains (const ElementType &type) const
 Returns whether the mesh contains at mesh elements of given type. More...
 
QgsMeshEdge edge (int index) const
 Returns an edge at the index. More...
 
int edgeCount () const
 Returns number of edge. More...
 
QgsMeshFace face (int index) const
 Returns a face at the index. More...
 
int faceCount () const
 Returns number of faces. More...
 
QgsMeshVertex vertex (int index) const
 Returns a vertex at the index. More...
 
int vertexCount () const
 Returns number of vertices. More...
 

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. More...
 

Public Attributes

QVector< QgsMeshEdgeedges
 
QVector< QgsMeshFacefaces
 
QVector< QgsMeshVertexvertices
 

Detailed Description

Mesh - vertices, edges and faces.

Since
QGIS 3.6

Definition at line 58 of file qgsmeshdataprovider.h.

Member Enumeration Documentation

◆ ElementType

Defines type of mesh elements.

Since
QGIS 3.14
Enumerator
Vertex 
Edge 
Face 

Definition at line 65 of file qgsmeshdataprovider.h.

Member Function Documentation

◆ clear()

void QgsMesh::clear ( )

Remove all vertices, edges and faces.

Since
QGIS 3.14

Definition at line 170 of file qgsmeshdataprovider.cpp.

◆ compareFaces()

bool QgsMesh::compareFaces ( const QgsMeshFace face1,
const QgsMeshFace face2 
)
static

Compare two faces, return true if they are equivalent : same indexes and same clock wise.

Since
QGIS 3.16

Definition at line 177 of file qgsmeshdataprovider.cpp.

◆ contains()

bool QgsMesh::contains ( const ElementType type) const

Returns whether the mesh contains at mesh elements of given type.

Since
QGIS 3.14

Definition at line 197 of file qgsmeshdataprovider.cpp.

◆ edge()

QgsMeshEdge QgsMesh::edge ( int  index) const

Returns an edge at the index.

Since
QGIS 3.14

Definition at line 163 of file qgsmeshdataprovider.cpp.

◆ edgeCount()

int QgsMesh::edgeCount ( ) const

Returns number of edge.

Since
QGIS 3.14

Definition at line 221 of file qgsmeshdataprovider.cpp.

◆ face()

QgsMeshFace QgsMesh::face ( int  index) const

Returns a face at the index.

Definition at line 156 of file qgsmeshdataprovider.cpp.

◆ faceCount()

int QgsMesh::faceCount ( ) const

Returns number of faces.

Definition at line 216 of file qgsmeshdataprovider.cpp.

◆ vertex()

QgsMeshVertex QgsMesh::vertex ( int  index) const

Returns a vertex at the index.

Definition at line 149 of file qgsmeshdataprovider.cpp.

◆ vertexCount()

int QgsMesh::vertexCount ( ) const

Returns number of vertices.

Definition at line 211 of file qgsmeshdataprovider.cpp.

Member Data Documentation

◆ edges

QVector<QgsMeshEdge> QgsMesh::edges

Definition at line 113 of file qgsmeshdataprovider.h.

◆ faces

QVector<QgsMeshFace> QgsMesh::faces

Definition at line 114 of file qgsmeshdataprovider.h.

◆ vertices

QVector<QgsMeshVertex> QgsMesh::vertices

Definition at line 112 of file qgsmeshdataprovider.h.


The documentation for this struct was generated from the following files: