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

asd

parent 2cbbc37c
No related branches found
No related tags found
No related merge requests found
......@@ -225,6 +225,7 @@ public:
while (!remainingVertices.empty()) {
//finding an ear
auto currVertex = remainingVertices.begin();
//check if current vertex is an ear
vec2 currPotDiag1 = *getNextVertex(currVertex);
vec2 currPotDiag2 = *getPreviousVertex(currVertex);
......@@ -239,7 +240,7 @@ public:
break;
//check if current potential diagonal is fully outside the polygon
vec2 infinity(250, 250);
vec2 infinity(200, 200);
vec2 middle((currPotDiag1 + currPotDiag2) / 2);
int numberOfIntersections = 0;
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