 			facets[tid * dim + 1],
 			facets[tid * dim + 2]
 		};
-		
+
 		//load \memory[vertex] 9 times.
 		double3 v1 = {
 			vertex[facet_index.x * dim + 0],

			vertex[facet_index.z * dim + 1],
			vertex[facet_index.z * dim + 2]
		};
		

		CudaPolygon current_polygon;
		current_polygon.vertex_nb = 3;

	

	__global__
		void kernel(
		double*			vertex, index_t			vertex_nb,
		double*			points, index_t			points_nb,
		index_t*		facets, index_t			facets_nb,
		index_t*		points_nn, index_t			k_p,
		index_t*		facets_nn, index_t			dim,
		double*			retdata
		){
		index_t tid = blockIdx.x * blockDim.x + threadIdx.x;
