16 #ifndef QGSTESSELLATOR_H
17 #define QGSTESSELLATOR_H
19 #include "qgis_core.h"
44 QgsTessellator(
double originX,
double originY,
bool addNormals,
bool invertNormals =
false,
bool addBackFaces =
false );
55 QgsTessellator(
const QgsRectangle &bounds,
bool addNormals,
bool invertNormals =
false,
bool addBackFaces =
false,
bool noZ =
false );
58 void addPolygon(
const QgsPolygon &polygon,
float extrusionHeight );
65 QVector<float>
data()
const {
return mData; }
68 int dataVerticesCount()
const;
71 int stride()
const {
return mStride; }
76 std::unique_ptr< QgsMultiPolygon > asMultiPolygon() const
SIP_SKIP;
82 float zMinimum()
const {
return mZMin; }
94 double mOriginX = 0, mOriginY = 0;
95 bool mAddNormals =
false;
96 bool mInvertNormals =
false;
97 bool mAddBackFaces =
false;
102 float mZMin = std::numeric_limits<float>::max();
103 float mZMax = std::numeric_limits<float>::min();
106 #endif // QGSTESSELLATOR_H