Subversion Repositories gelsvn

Rev

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

Rev 81 Rev 97
Line 18... Line 18...
18
typedef RGrid<unsigned char> RGridb;
18
typedef RGrid<unsigned char> RGridb;
19
 
19
 
20
int main(int argc, char**argv)
20
int main(int argc, char**argv)
21
{
21
{
22
		ArgExtracter ae(argc, argv);
22
		ArgExtracter ae(argc, argv);
23
		float iso = 30;
23
		float iso = 40;
24
		ae.extract("-i", iso);
24
		ae.extract("-i", iso);
25
		int X  = 256;
25
		int X  = 128;
26
		ae.extract("-x", X);
26
		ae.extract("-x", X);
27
		int Y  = 256;
27
		int Y  = 128;
28
		ae.extract("-y", Y);
28
		ae.extract("-y", Y);
29
		int Z  = 256;
29
		int Z  = 62;
30
		ae.extract("-z", Z);
30
		ae.extract("-z", Z);
31
		string file = ae.get_last_arg();
31
		string file = ae.get_last_arg();
-
 
32
		if(file=="") file ="../../data/teddybear.raw";
32
		
33
		
33
		RGridb grid(Vec3i(X,Y,Z));
34
		RGridb grid(Vec3i(X,Y,Z));
34
		load_raw(file,grid);
35
		load_raw(file,grid);
35
		
36
		
36
		
37
		
Line 41... Line 42...
41
		cout << "Removing caps and needles ... " << endl;
42
		cout << "Removing caps and needles ... " << endl;
42
		remove_caps_from_trimesh(mani, M_PI * 0.85);
43
		remove_caps_from_trimesh(mani, M_PI * 0.85);
43
		remove_needles_from_trimesh(mani, 1e-2);
44
		remove_needles_from_trimesh(mani, 1e-2);
44
		
45
		
45
		cout << "Saving" << endl;
46
		cout << "Saving" << endl;
46
		obj_save("isosurf.obj", mani);
47
		obj_save("../../data/isosurf.obj", mani);
47
}
48
}