-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc optimization for geometries and fixes
- Loading branch information
1 parent
f26bbd9
commit 7af2e68
Showing
9 changed files
with
189 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/************************************************************************ | ||
* 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 | ||
addPolygon() method that will generate triangles, and finally call 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 ); | ||
%Docstring | ||
Creates tessellator with a specified origin point of the world (in map coordinates) | ||
%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 | ||
Return number of vertices stored in the output data array | ||
%End | ||
|
||
int stride() const; | ||
%Docstring | ||
Returns size of one vertex entry in bytes | ||
%End | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgstessellator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.