 #include "device_atomic_functions.h"
 
 namespace Gpu_Rvd{
+	
+
+	texture<int2, 1> t_vertex;
+	texture<int2, 1> t_points;
+	texture<int> t_points_nn;
 
 	CudaRestrictedVoronoiDiagram::CudaRestrictedVoronoiDiagram(Mesh m, Points p) : 
 		vertex_(m.v_ptr()),


	__host__
		void CudaRestrictedVoronoiDiagram::print_return_data(std::string filename) const{
		/*for (int i = 0; i < points_nb_; ++i)
		{
			if (fabs(host_ret_[i * 4 + 3]) >= 1e-12){
				host_ret_[i * 4 + 0] /= host_ret_[i * 4 + 3];
				host_ret_[i * 4 + 1] /= host_ret_[i * 4 + 3];
				host_ret_[i * 4 + 2] /= host_ret_[i * 4 + 3];
			}
		}*/
		index_t line_num = 4;
		std::ofstream f;
		f.open(filename);

		dev_ret_(nil),
		host_ret_(nil),
		dev_seeds_info_(nil),
		dev_seeds_poly_nb(nil),
		mode_(GLOBAL_MEMORY)
	{
	}

