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 double mOriginX = 0, mOriginY = 0;
83 bool mAddNormals =
false;
84 bool mInvertNormals =
false;
85 bool mAddBackFaces =
false;
91 #endif // QGSTESSELLATOR_H QVector< float > data() const
Returns array of triangle vertex data.
A rectangle specified with double values.
int stride() const
Returns size of one vertex entry in bytes.
Class that takes care of tessellation of polygons into triangles.
Multi polygon geometry collection.