 		CudaStopWatcher watcher("compute_rvd");
 		watcher.start();
 
-		mode_ = TEXTURE_MEMORY;
+		mode_ = GLOBAL_MEMORY;
 		allocate_and_copy(mode_);
 		//might be improved dim3 type.
-		int threads = 512;
+		int threads = 1024;
 		int blocks = facet_nb_ / threads + ((facet_nb_ % threads) ? 1 : 0);
 		switch (mode_)
 		{

		watcher.synchronize();
		watcher.print_elaspsed_time(std::cout);
		
		//std::string out_file("..//out//S2_points_tex.txt");
		//print_return_data(out_file);
		free_memory();
	}


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

		CudaPolygon current_polygon;
		current_polygon.vertex_nb = 3;
