 	for (int i = 0; i < 20; ++i)
 	{
 		int j = seeds_neighbors[i];
-		int q;
-		if (tid == 0 && _i == 3 && i == 1)
-		{
-			for (q = 0; q < vertex_nb * 4; ++q)
-			{
-				test_polygon[6 + q] = polygon_pointer[q];
-			}
-		}
 
 		if (current_seed != j)
 		{ 
-			if (tid == 0 && _i == 3 && i == 1)
-			{
-				test_index[42] = j;
-				test_index[43] = vertex_nb;
-				
-			}
-			clip_by_plane(polygon_pointer, vertex_nb, polygon_buffer, polygon_buffer_nb, current_seed, j, seeds_pointer, seeds_nb, test_polygon, tid);
+			clip_by_plane(polygon_pointer, vertex_nb, polygon_buffer, polygon_buffer_nb, current_seed, j, seeds_pointer, seeds_nb);
 			swap_polygons(polygon_pointer, vertex_nb, polygon_buffer, polygon_buffer_nb);
-			if (tid == 0 && _i == 3 && i == 1)
-			{
-				test_index[44] = vertex_nb;
-				test_index[45] = polygon_buffer_nb;
-				for (int p = 0; p < vertex_nb * 4; ++p)
-				{
-					test_polygon[101 + p] = polygon_pointer[p];
-				}
-			}
-		}
-	}
-	if (tid == 0 && _i == 3)
-	{
-		test_polygon[3] = current_seed_pos.x;
-		test_polygon[4] = current_seed_pos.y;
-		test_polygon[5] = current_seed_pos.z;
-		for (int i = 0; i < 20; ++i)
-		{
-			test_index[i + 21] = seeds_neighbors[i];
-		}
-		test_index[41] = current_seed;
-
-	
-	}
-
+		}
+	}
 	free(seeds_neighbors);
 	free(polygon_buffer);
 }

		}
		//printf("seeds %d : %.16lf, %.16lf, %.16lf, , %.16lf \n", i, host_test_seeds[i * 4 + 0]
			//, host_test_seeds[i * 4 + 1], host_test_seeds[i * 4 + 2], host_test_seeds[i * 4 + 3]);
		//fout << i << ':' << host_test_seeds[i * 4 + 0] << ' ' << host_test_seeds[i * 4 + 1] << ' ' << host_test_seeds[i * 4 + 2] << ' ' << host_test_seeds[i * 4 + 3] << endl;
	}
	for (int i = 0; i < points_nb; ++i)
	{
		//fout << i << ':' << host_test_polygon[i] << endl;
	}
}
#include "Polygon.h"
#include <iostream>
#include <fstream>
#include <iomanip>

using namespace std;
using namespace P_RVD;
