mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Updates from review
This commit is contained in:
parent
875da3f56c
commit
3724138688
@ -46,9 +46,16 @@ class QgsTessellatedPolygonGeometry : public Qt3DRender::QGeometry
|
||||
//! Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders)
|
||||
void setInvertNormals( bool invert ) { mInvertNormals = invert; }
|
||||
|
||||
//! Returns whether also triangles facing the other side will be created. Useful if input data have inconsistent order of vertices
|
||||
/**
|
||||
* Returns whether also triangles facing the other side will be created. Useful if input data have inconsistent order of vertices
|
||||
* \since QGIS 3.2
|
||||
*/
|
||||
bool addBackFaces() const { return mAddBackFaces; }
|
||||
//! Sets whether also triangles facing the other side will be created. Useful if input data have inconsistent order of vertices
|
||||
|
||||
/**
|
||||
* Sets whether also triangles facing the other side will be created. Useful if input data have inconsistent order of vertices
|
||||
* \since QGIS 3.2
|
||||
*/
|
||||
void setAddBackFaces( bool add ) { mAddBackFaces = add; }
|
||||
|
||||
//! Initializes vertex buffer from given polygons. Takes ownership of passed polygon geometries
|
||||
|
@ -55,10 +55,10 @@ class _3D_EXPORT QgsTessellator
|
||||
std::unique_ptr< QgsMultiPolygon > asMultiPolygon() const;
|
||||
|
||||
private:
|
||||
double mOriginX, mOriginY;
|
||||
bool mAddNormals;
|
||||
bool mInvertNormals;
|
||||
bool mAddBackFaces;
|
||||
double mOriginX = 0, mOriginY = 0;
|
||||
bool mAddNormals = false;
|
||||
bool mInvertNormals = false;
|
||||
bool mAddBackFaces = false;
|
||||
QVector<float> mData;
|
||||
int mStride;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user