16 #ifndef QGSTESSELLATEDPOLYGONGEOMETRY_H
17 #define QGSTESSELLATEDPOLYGONGEOMETRY_H
22 #include <Qt3DRender/QGeometry>
67 void setPolygons(
const QList<QgsPolygon *> &polygons,
const QList<QgsFeatureId> &featureIds,
const QgsPointXY &origin,
float extrusionHeight,
const QList<float> &extrusionHeightPerPolygon = QList<float>() );
74 void setData(
const QByteArray &vertexBufferData,
int vertexCount,
const QVector<QgsFeatureId> &triangleIndexFids,
const QVector<uint> &triangleIndexStartingIndices );
84 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
85 Qt3DRender::QAttribute *mNormalAttribute =
nullptr;
86 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
88 QVector<QgsFeatureId> mTriangleIndexFids;
89 QVector<uint> mTriangleIndexStartingIndices;
91 bool mWithNormals =
true;
92 bool mInvertNormals =
false;
93 bool mAddBackFaces =
false;
96 #endif // QGSTESSELLATEDPOLYGONGEOMETRY_H