18 #ifndef QGSTRIANGULARMESH_H 19 #define QGSTRIANGULARMESH_H 25 #include "qgis_core.h" 59 QgsMeshFeatureIterator(
QgsMesh *mesh );
60 ~QgsMeshFeatureIterator()
override;
62 bool rewind()
override;
63 bool close()
override;
107 const QVector<QgsMeshVertex> &vertices()
const ;
109 const QVector<QgsMeshFace> &triangles()
const ;
112 const QVector<QgsMeshVertex> ¢roids()
const ;
115 const QVector<int> &trianglesToNativeFaces()
const ;
126 int faceIndexForPoint(
const QgsPointXY &point )
const ;
137 QList<int> faceIndexesForRectangle(
const QgsRectangle &rectangle )
const ;
143 QVector<int> mTrianglesToNativeFaces;
146 QVector<QgsMeshVertex> mNativeMeshFaceCentroids;
161 QList<int>
nativeFacesFromTriangles(
const QList<int> &triangleIndexes,
const QVector<int> &trianglesToNativeFaces );
164 #endif // QGSTRIANGULARMESH_H QgsGeometry toGeometry(const QgsMeshFace &face, const QVector< QgsMeshVertex > &vertices)
Returns face as polygon geometry.
A rectangle specified with double values.
Triangular/Derived Mesh is mesh with vertices in map coordinates.
A class to represent a 2D point.
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QVector< QgsMeshVertex > vertices
vertices
Internal feature iterator to be implemented within data providers.
QList< int > nativeFacesFromTriangles(const QList< int > &triangleIndexes, const QVector< int > &trianglesToNativeFaces)
Returns unique native faces indexes from list of triangle indexes.
Contains information about the context of a rendering operation.
Mesh - vertices and faces.
A spatial index for QgsFeature objects.
QVector< int > QgsMeshFace
List of vertex indexes.
QVector< QgsMeshFace > faces
faces