 		for (index_t t = 0; t < k; ++t){
 
 			//load /memory[points_nn] k times.
-			index_t j = points[i * k + t];
+			index_t j = points_nn[i * k + t];
 
 			if (i != j){
 				//load /memroy[points] k * 3 times.


		double3 pos1, pos2, pos3;
		double d1, d2, d3;
		index_t triangle_nb = polygon.vertex_nb - 2;

		double total_weight = 0.0;
		double3 centriodTimesWeight = { 0.0, 0.0, 0.0 };

		double current_weight = 0.0;
		double3 current_posTimesWeight = { 0.0, 0.0, 0.0 };

		for (index_t i = 1; i < polygon.vertex_nb - 1; ++i)
		{
			_v2 = i; _v3 = i + 1;

					}
					has_visited_flag = false;
				}
			}	
			current_polygon = current_store;
		}
		__syncthreads();


		/*for (index_t i = 0; i < points_nb; ++i){
			retdata[i] = g_seeds_polygon_nb[i];
		}*/
		/*for (index_t i = 0; i < points_nb * 4; ++i){
			retdata[i] = g_seeds_information[i];
		}*/
	}

	__host__
