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;
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 QVector< float > data() const
Returns array of triangle vertex data.
A rectangle specified with double values.
float zMaximum() const
Returns maximal Z value of the data (in world coordinates)
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.
float zMinimum() const
Returns minimal Z value of the data (in world coordinates)