16 #ifndef QGSTESSELLATEDPOLYGONGEOMETRY_H 17 #define QGSTESSELLATEDPOLYGONGEOMETRY_H 21 #include <Qt3DRender/QGeometry> 50 void setPolygons(
const QList<QgsPolygon *> &polygons,
const QgsPointXY &origin,
float extrusionHeight,
const QList<float> &extrusionHeightPerPolygon = QList<float>() );
54 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
55 Qt3DRender::QAttribute *mNormalAttribute =
nullptr;
56 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
58 bool mWithNormals =
true;
59 bool mInvertNormals =
false;
62 #endif // QGSTESSELLATEDPOLYGONGEOMETRY_H void setInvertNormals(bool invert)
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwi...
A class to represent a 2D point.
3 Class derived from Qt3DRender::QGeometry that represents polygons tessellated into 3D geometry...
bool invertNormals() const
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-cloc...