 		//load \memory[facets_nn] 1 time.
 		to_visit[to_visit_pos++] = facets_nn[tid];
 		has_visited[has_visited_nb++] = to_visit[0];
-
+		
 		while (to_visit_pos){
 			index_t current_seed = to_visit[to_visit_pos - 1];
 			to_visit_pos--;
-
+			
 			intersection_clip_facet_SR(
 				current_polygon,
 				current_seed,


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

			atomicAdd(&g_seeds_polygon_nb[current_seed], 1);
			if (triangle_nb > 0){

				current_weight /= triangle_nb;

				double3 temp_pos;

				temp_pos.x = current_posTimesWeight.x / triangle_nb;
				temp_pos.y = current_posTimesWeight.y / triangle_nb;
				temp_pos.z = current_posTimesWeight.z / triangle_nb;

				MyAtomicAdd(&g_seeds_information[current_seed * 4 + 0], temp_pos.x);
				MyAtomicAdd(&g_seeds_information[current_seed * 4 + 1], temp_pos.y);
				MyAtomicAdd(&g_seeds_information[current_seed * 4 + 2], temp_pos.z);
				MyAtomicAdd(&g_seeds_information[current_seed * 4 + 3], current_weight);
			}
		}
	}

	/*

		}
			break;
		case CONSTANT_MEMORY:
		{
			cudaMalloc((void**)&dev_facets_, sizeof(index_t) * facet_nb_ * dimension_);
			cudaMalloc((void**)&dev_facets_nn_, sizeof(index_t) * facet_nb_ * 1);

			//Output result.
			cudaMalloc((void**)&dev_ret_, sizeof(double) * points_nb_ * 4);
			CheckCUDAError("Allocating device memory");

			cudaMemcpyToSymbol(c_vertex, vertex_, DOUBLE_SIZE * vertex_nb_ * dimension_);
			cudaMemcpyToSymbol(c_points, points_, DOUBLE_SIZE * points_nb_ * dimension_);
			cudaMemcpyToSymbol(c_points_nn, points_nn_, INT_SIZE * points_nb_ * k_);

			cudaMemcpy(dev_facets_nn_, facets_nn_, sizeof(index_t) * facet_nb_ * 1, cudaMemcpyHostToDevice);
			cudaMemcpy(dev_facets_, facets_, sizeof(index_t) * facet_nb_ * dimension_, cudaMemcpyHostToDevice);
			CheckCUDAError("Copying data from host to device");
		}
			break;
		case TEXTURE_MEMORY:
			break;
