Subversion Repositories gelsvn

Rev

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

Rev 363 Rev 365
Line 5... Line 5...
5
#include "HMesh/x3d_save.h"
5
#include "HMesh/x3d_save.h"
6
#include "HMesh/x3d_load.h"
6
#include "HMesh/x3d_load.h"
7
#include "HMesh/obj_load.h"
7
#include "HMesh/obj_load.h"
8
#include "HMesh/obj_save.h"
8
#include "HMesh/obj_save.h"
9
#include "HMesh/caps_and_needles.h"
9
#include "HMesh/caps_and_needles.h"
-
 
10
#include "HMesh/close_holes.h"
10
#include "HMesh/triangulate.h"
11
#include "HMesh/triangulate.h"
11
 
12
 
12
using namespace std;
13
using namespace std;
13
using namespace CGLA;
14
using namespace CGLA;
14
using namespace HMesh;
15
using namespace HMesh;
Line 59... Line 60...
59
	
60
	
60
	cout << "Removing caps and needles ... " << endl;
61
	cout << "Removing caps and needles ... " << endl;
61
	remove_caps_from_trimesh(m, static_cast<float>(M_PI) * 0.85f);
62
	remove_caps_from_trimesh(m, static_cast<float>(M_PI) * 0.85f);
62
	remove_needles_from_trimesh(m, 0.1 * avg_length);
63
	remove_needles_from_trimesh(m, 0.1 * avg_length);
63
    
64
    
-
 
65
	cout << "Closing holes" << endl;
-
 
66
	close_holes(m);
-
 
67
	triangulate(m);
64
    cout << "Validity: " << m.is_valid() << endl;
68
    cout << "Validity: " << m.is_valid() << endl;
65
    cout << "Now saving ... " << endl;
69
    cout << "Now saving ... " << endl;
66
    obj_save("decimated.obj", m);
70
    obj_save("decimated.obj", m);
67
}
71
}