Skip to content
Snippets Groups Projects
Commit 7bad3445 authored by bobarna's avatar bobarna
Browse files

asd

parent 2cbbc37c
Branches
Tags 1.1.2
No related merge requests found
...@@ -225,6 +225,7 @@ public: ...@@ -225,6 +225,7 @@ public:
while (!remainingVertices.empty()) { while (!remainingVertices.empty()) {
//finding an ear //finding an ear
auto currVertex = remainingVertices.begin(); auto currVertex = remainingVertices.begin();
//check if current vertex is an ear //check if current vertex is an ear
vec2 currPotDiag1 = *getNextVertex(currVertex); vec2 currPotDiag1 = *getNextVertex(currVertex);
vec2 currPotDiag2 = *getPreviousVertex(currVertex); vec2 currPotDiag2 = *getPreviousVertex(currVertex);
...@@ -239,7 +240,7 @@ public: ...@@ -239,7 +240,7 @@ public:
break; break;
//check if current potential diagonal is fully outside the polygon //check if current potential diagonal is fully outside the polygon
vec2 infinity(250, 250); vec2 infinity(200, 200);
vec2 middle((currPotDiag1 + currPotDiag2) / 2); vec2 middle((currPotDiag1 + currPotDiag2) / 2);
int numberOfIntersections = 0; int numberOfIntersections = 0;
for (auto currEdgeStart = remainingVertices.begin(); for (auto currEdgeStart = remainingVertices.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment