Subversion Repositories gelsvn

Rev

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

Rev 23 Rev 26
Line 1... Line 1...
1
 
1
 
2
#include <iostream>
2
#include <iostream>
3
 
3
 
4
#include "CGLA/Vec3f.h"
4
#include "CGLA/Vec3f.h"
5
#include "HMeshUtil/quadric_simplify.h"
5
//#include "HMeshUtil/quadric_simplify.h"
6
#include "HMeshUtil/x3d_save.h"
6
#include "HMeshUtil/x3d_save.h"
7
#include "HMeshUtil/x3d_load.h"
7
#include "HMeshUtil/x3d_load.h"
8
#include "HMeshUtil/caps_and_needles.h"
8
#include "HMeshUtil/caps_and_needles.h"
9
 
9
 
10
 
10
 
Line 28... Line 28...
28
 	for(VertexIter vi = m.vertices_begin(); vi != m.vertices_end(); ++vi)
28
 	for(VertexIter vi = m.vertices_begin(); vi != m.vertices_end(); ++vi)
29
 		{
29
 		{
30
 			vi->set_pos((vi->get_pos() - p0) * s);
30
 			vi->set_pos((vi->get_pos() - p0) * s);
31
 		}
31
 		}
32
 
32
 
33
	cout << "Perform quadric based simplification ... " << endl;
33
	//cout << "Perform quadric based simplification ... " << endl;
34
 
-
 
35
	quadric_simplify(m,atoi(argv[2]));
34
	//quadric_simplify(m,atoi(argv[2]));
36
 
35
 
37
	cout << "Removing caps and needles ... " << endl;
36
	cout << "Removing caps and needles ... " << endl;
38
	remove_caps_from_trimesh(m, M_PI * 0.85);
37
	remove_caps_from_trimesh(m, M_PI * 0.85);
39
	remove_needles_from_trimesh(m, 1e-4);
38
	remove_needles_from_trimesh(m, 1e-4);
40
 
39