16 #ifndef QGSTESSELLATOR_H 17 #define QGSTESSELLATOR_H 19 #include "qgis_core.h" 43 QgsTessellator(
double originX,
double originY,
bool addNormals,
bool invertNormals =
false,
bool addBackFaces =
false );
46 void addPolygon(
const QgsPolygon &polygon,
float extrusionHeight );
53 QVector<float>
data()
const {
return mData; }
56 int dataVerticesCount()
const;
59 int stride()
const {
return mStride; }
64 std::unique_ptr< QgsMultiPolygon > asMultiPolygon()
const SIP_SKIP;
67 double mOriginX = 0, mOriginY = 0;
68 bool mAddNormals =
false;
69 bool mInvertNormals =
false;
70 bool mAddBackFaces =
false;
75 #endif // QGSTESSELLATOR_H Class that takes care of tessellation of polygons into triangles.
QVector< float > data() const
Returns array of triangle vertex data.
int stride() const
Returns size of one vertex entry in bytes.
Multi polygon geometry collection.