Subversion Repositories gelsvn

Rev

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

Rev 178 Rev 198
Line 34... Line 34...
34
			quadric_simplify(m,atoi(argv[2]));
34
			quadric_simplify(m,atoi(argv[2]));
35
		else
35
		else
36
			quadric_simplify(m,10000);
36
			quadric_simplify(m,10000);
37
    
37
    
38
    cout << "Removing caps and needles ... " << endl;
38
    cout << "Removing caps and needles ... " << endl;
39
    remove_caps_from_trimesh(m, M_PI * 0.85);
39
    remove_caps_from_trimesh(m, static_cast<float>(M_PI) * 0.85f);
40
    remove_needles_from_trimesh(m, 1e-4);
40
    remove_needles_from_trimesh(m, 1e-4f);
41
    
41
    
42
    cout << "Validity: " << m.is_valid() << endl;
42
    cout << "Validity: " << m.is_valid() << endl;
43
    cout << "Now saving ... " << endl;
43
    cout << "Now saving ... " << endl;
44
    x3d_save("../../data/decimated.x3d", m);
44
    x3d_save("../../data/decimated.x3d", m);
45
}
45
}