 			}
 		}
 	}
-	if (tid == 0 && _i == 0)
+	if (tid == 0 && _i == 1)
 	{
 		test_polygon[3] = current_seed_pos.x;
 		test_polygon[4] = current_seed_pos.y;

	{
		int j = seeds_neighbors[i];
		int q;
		if (tid == 0 && _i == 0 && i == 19)
		{
			for (q = 0; q < vertex_nb * 4; ++q)
			{


		if (current_seed != j)
		{ 
			if (tid == 0 && _i == 1 && i == 19)
			{
				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);
			swap_polygons(polygon_pointer, vertex_nb, polygon_buffer, polygon_buffer_nb);
			if (tid == 0 && _i == 1 && i == 19)
			{
				test_index[44] = vertex_nb;
				test_index[45] = polygon_buffer_nb;
