Integrated Polygon Test

Use calculate traingles and the isInPolygon with theese triangles, this is done because of performance reasons
This commit is contained in:
Sonaion
2019-12-18 16:32:11 +01:00
parent 21ade76563
commit 4953abc791
5 changed files with 150 additions and 22 deletions

View File

@@ -2,9 +2,13 @@
#define INTELLISHAPE_H
#include"Image/IntelliRasterImage.h"
#include<vector>
#include"IntelliHelper/IntelliHelper.h"
class IntelliShapedImage : public IntelliRasterImage{
friend IntelliTool;
private:
std::vector<Triangle> triangles;
protected:
std::vector<QPoint> polygonData;