mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
* [Feature] texturing support for vector layer * Fixed tesselation test not passing issue * Fixed diffuse_texture_path typo * Refactoring according to code review * [Bugfix] the texture coordinates are not setup properly for certain walls * Added seperation between roofs and walls * [Feature] texture coordinates rotation * took back the seperation of texture rotation between walls and roofs because the user will be specifying them with different symbols anyway * Fixed docs test not passing issue * Fixed compilation problem * Fixed compilation problem * Executed sipify_all trying to fix test not passing issue * [ui] Harmonize play button across the board * [ui] Better network logger icon * [ui] Harmonize loop widget of 3D map view * [ui] Add a record icon and use it in the network logger panel * [ui] Move icon-less network logger toolbar actions under settings menu * [ui] Reflect playback stay in the 3D map view's play button * Fix azure * Use prefix increment operator to fix cppcheck warnings related to postfixOperator * [afs] Read field aliases from layer definition * Fix ui build warning * [FEATURE][processing] Add modeler algorithm to set a project expression variable Allows a model to set Project-level expression variables during execution. Especially useful with the new Export Print Layout algorithms to allow models which dynamically set variables used in a layout prior to export. * Add test * Refactoring according to code review Co-authored-by: nirvn <nirvn.asia@gmail.com> Co-authored-by: Even Rouault <even.rouault@spatialys.com> Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
94 lines
3.2 KiB
Plaintext
94 lines
3.2 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgstessellator.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsTessellator
|
|
{
|
|
%Docstring
|
|
Class that takes care of tessellation of polygons into triangles.
|
|
|
|
It is expected that client code will create the tessellator object, then repeatedly call
|
|
:py:func:`~addPolygon` method that will generate triangles, and finally call :py:func:`~data` to get final vertex data.
|
|
|
|
Optionally provides extrusion by adding triangles that serve as walls when extrusion height is non-zero.
|
|
|
|
.. versionadded:: 3.4
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgstessellator.h"
|
|
%End
|
|
public:
|
|
QgsTessellator( double originX, double originY, bool addNormals, bool invertNormals = false, bool addBackFaces = false, bool noZ = false,
|
|
bool addTextureCoords = false, int facade = 3, float textureRotation = 0.0f );
|
|
%Docstring
|
|
Creates tessellator with a specified origin point of the world (in map coordinates)
|
|
%End
|
|
|
|
QgsTessellator( const QgsRectangle &bounds, bool addNormals, bool invertNormals = false, bool addBackFaces = false, bool noZ = false,
|
|
bool addTextureCoords = false, int facade = 3, float textureRotation = 0.0f );
|
|
%Docstring
|
|
Creates tessellator with a specified ``bounds`` of input geometry coordinates.
|
|
This constructor allows the tessellator to map input coordinates to a desirable range for numerical
|
|
stability during calculations.
|
|
|
|
If ``noZ`` is ``True``, then a 2-dimensional tessellation only will be performed and all z coordinates will be ignored.
|
|
|
|
.. versionadded:: 3.10
|
|
%End
|
|
|
|
void addPolygon( const QgsPolygon &polygon, float extrusionHeight );
|
|
%Docstring
|
|
Tessellates a triangle and adds its vertex entries to the output data array
|
|
%End
|
|
|
|
QVector<float> data() const;
|
|
%Docstring
|
|
Returns array of triangle vertex data
|
|
|
|
Vertice coordinates are stored as (x, z, -y)
|
|
%End
|
|
|
|
int dataVerticesCount() const;
|
|
%Docstring
|
|
Returns the number of vertices stored in the output data array
|
|
%End
|
|
|
|
int stride() const;
|
|
%Docstring
|
|
Returns size of one vertex entry in bytes
|
|
%End
|
|
|
|
|
|
float zMinimum() const;
|
|
%Docstring
|
|
Returns minimal Z value of the data (in world coordinates)
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
float zMaximum() const;
|
|
%Docstring
|
|
Returns maximal Z value of the data (in world coordinates)
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgstessellator.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|