 				current_weight /= triangle_nb;
 
 				double3 temp_pos;
-				
+
 				temp_pos.x = current_posTimesWeight.x * current_weight;
 				temp_pos.y = current_posTimesWeight.y * current_weight;
 				temp_pos.z = current_posTimesWeight.z * current_weight;

output: polygon pong and its number
*/
__device__
void clip_by_plane(double* ping, int& ping_nb, double* pong, int& pong_nb, int seed_i, int seed_j, double* seeds_pointer, int seeds_nb, double* test_double, int _tid)
{
	//test 
	int index = 150;

	for (int i = 0; i < 20; ++i)
	{
		int j = seeds_neighbors[i];

		if (current_seed != j)
		{ 
			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);
		}
	}
	free(seeds_neighbors);
	free(polygon_buffer);
}
