Subversion Repositories gelsvn

Rev

Rev 185 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 185 Rev 191
Line 43... Line 43...
43
// 				for(int k=0;k<32;++k)		
43
// 				for(int k=0;k<32;++k)		
44
// 					grid[Vec3i(i,j,k)] = 80.0 * rand()/double(RAND_MAX);
44
// 					grid[Vec3i(i,j,k)] = 80.0 * rand()/double(RAND_MAX);
45
 
45
 
46
 		cout << "loading " << file << endl;
46
 		cout << "loading " << file << endl;
47
 		load_raw(file,grid);
47
 		load_raw(file,grid);
-
 
48
//  		for(int i=0;i<X;++i)
-
 
49
//  			for(int j=0;j<Y;++j)
-
 
50
//  				for(int k=0;k<Z;++k)		
-
 
51
// 						grid[Vec3i(i,j,k)] = _grid[Vec3i(i,j,k)];
48
		
52
		
49
		cout << "Polygonizing, iso = " << iso << endl;
53
		cout << "Polygonizing, iso = " << iso << endl;
50
		Manifold mani;
54
		Manifold mani;
51
		cuberille_polygonize(grid, mani, iso, true);
55
		cuberille_polygonize(grid, mani, iso, true);
52
		shortest_edge_triangulate(mani);
56
		shortest_edge_triangulate(mani);