16 #ifndef QGSTESSELLATEDPOLYGONGEOMETRY_H 17 #define QGSTESSELLATEDPOLYGONGEOMETRY_H 21 #include <Qt3DRender/QGeometry> 61 void setPolygons(
const QList<QgsPolygon *> &polygons,
const QgsPointXY &origin,
float extrusionHeight,
const QList<float> &extrusionHeightPerPolygon = QList<float>() );
65 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
66 Qt3DRender::QAttribute *mNormalAttribute =
nullptr;
67 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
69 bool mWithNormals =
true;
70 bool mInvertNormals =
false;
71 bool mAddBackFaces =
false;
74 #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 addBackFaces() const
Returns whether also triangles facing the other side will be created.
void setAddBackFaces(bool add)
Sets whether also triangles facing the other side will be created.
bool invertNormals() const
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-cloc...