Skip to content
Snippets Groups Projects
Commit 4b245990 authored by bobarna's avatar bobarna
Browse files

working koruljarasi irany

parent 03d493f7
No related branches found
No related tags found
No related merge requests found
...@@ -224,8 +224,9 @@ public: ...@@ -224,8 +224,9 @@ public:
if (n > 3) printf("Can't add 4th point to a triangle!\n"); if (n > 3) printf("Can't add 4th point to a triangle!\n");
printf("%d\n", n); printf("%d\n", n);
if (n == 2) generateLineSegment(points[0], points[1]); if (n == 2) generateLineSegment(points[0], points[1]);
if (n == 3) generateLineSegment(points[1], points[2]);
if (n == 3) generateLineSegment(points[2], points[0]); if (n == 3) generateLineSegment(points[2], points[0]);
if (n == 3) generateLineSegment(points[1], points[2]);
} }
void generateLineSegment(Point p1, Point p2) { void generateLineSegment(Point p1, Point p2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment