16 #ifndef QGSTESSELLATOR_H 17 #define QGSTESSELLATOR_H 42 QgsTessellator(
double originX,
double originY,
bool addNormals,
bool invertNormals =
false,
bool addBackFaces =
false );
45 void addPolygon(
const QgsPolygon &polygon,
float extrusionHeight );
48 QVector<float>
data()
const {
return mData; }
50 int stride()
const {
return mStride; }
55 std::unique_ptr< QgsMultiPolygon > asMultiPolygon()
const;
58 double mOriginX = 0, mOriginY = 0;
59 bool mAddNormals =
false;
60 bool mInvertNormals =
false;
61 bool mAddBackFaces =
false;
66 #endif // QGSTESSELLATOR_H QVector< float > data() const
Returns array of triangle vertex data.
int stride() const
Returns size of one vertex entry in bytes.
3 Class that takes care of tessellation of polygons into triangles.
Multi polygon geometry collection.