Subversion Repositories gelsvn

Rev

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

Rev 356 Rev 363
Line 52... Line 52...
52
		avg_length += length(h);
52
		avg_length += length(h);
53
	}
53
	}
54
	avg_length /= m.no_halfedges();
54
	avg_length /= m.no_halfedges();
55
	
55
	
56
	cout << "Perform quadric based simplification ... " << endl;
56
	cout << "Perform quadric based simplification ... " << endl;
57
	if(argc>2)
-
 
58
		quadric_simplify(m,atoi(argv[2]),0.05, true);
57
	quadric_simplify(m,0.1);
59
	else
-
 
60
		quadric_simplify(m,10000);
58
	quadric_simplify(m,atof(argv[2]));
61
	
59
	
62
	cout << "Removing caps and needles ... " << endl;
60
	cout << "Removing caps and needles ... " << endl;
63
	remove_caps_from_trimesh(m, static_cast<float>(M_PI) * 0.85f);
61
	remove_caps_from_trimesh(m, static_cast<float>(M_PI) * 0.85f);
64
	remove_needles_from_trimesh(m, 0.1 * avg_length);
62
	remove_needles_from_trimesh(m, 0.1 * avg_length);
65
    
63