Subversion Repositories gelsvn

Rev

Rev 192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 192 Rev 205
Line 36... Line 36...
36
		string file;
36
		string file;
37
		if(ae.no_remaining_args()<2) 
37
		if(ae.no_remaining_args()<2) 
38
				file ="../../data/teddybear.raw";
38
				file ="../../data/teddybear.raw";
39
		else
39
		else
40
				file = ae.get_last_arg();
40
				file = ae.get_last_arg();
41
		
41
 
-
 
42
		//RGrid<unsigned short> grid(Vec3i(X,Y,Z));
42
		RGridb grid(Vec3i(X,Y,Z));
43
		RGridb grid(Vec3i(X,Y,Z));
43
 
44
 
44
//		RGridb grid(Vec3i(32));
45
//		RGridb grid(Vec3i(32));
45
// 		srand(0);
46
// 		srand(0);
46
// 		for(int i=0;i<32;++i)
47
// 		for(int i=0;i<32;++i)
Line 51... Line 52...
51
 		cout << "loading " << file << endl;
52
 		cout << "loading " << file << endl;
52
 		load_raw(file,grid);
53
 		load_raw(file,grid);
53
		
54
		
54
		cout << "Polygonizing, iso = " << iso << endl;
55
		cout << "Polygonizing, iso = " << iso << endl;
55
		Manifold mani;
56
		Manifold mani;
56
		cuberille_polygonize(grid, mani, iso, true);
57
		//cuberille_polygonize(grid, mani, iso, false);
-
 
58
		mc_polygonize(grid, mani, iso);
-
 
59
		
57
		shortest_edge_triangulate(mani);
60
				//shortest_edge_triangulate(mani);
58
 
61
 
59
		cout << "Saving" << endl;
62
		cout << "Saving" << endl;
60
		x3d_save(ofile, mani);
63
		x3d_save(ofile, mani);
61
}
64
}