Subversion Repositories gelsvn

Rev

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

Rev 178 Rev 185
Line 4... Line 4...
4
#include "Geometry/load_raw.h"
4
#include "Geometry/load_raw.h"
5
#include "Geometry/save_raw.h"
5
#include "Geometry/save_raw.h"
6
#include "HMesh/obj_save.h"
6
#include "HMesh/obj_save.h"
7
#include "HMesh/x3d_save.h"
7
#include "HMesh/x3d_save.h"
8
#include "HMesh/caps_and_needles.h"
8
#include "HMesh/caps_and_needles.h"
9
#include "HMesh/fair_polygonize.h"
9
#include "HMesh/volume_polygonize.h"
-
 
10
#include "HMesh/triangulate.h"
10
 
11
 
11
using namespace CGLA;
12
using namespace CGLA;
12
using namespace Util;
13
using namespace Util;
13
using namespace HMesh;
14
using namespace HMesh;
14
using namespace std;
15
using namespace std;
Line 43... Line 44...
43
// 					grid[Vec3i(i,j,k)] = 80.0 * rand()/double(RAND_MAX);
44
// 					grid[Vec3i(i,j,k)] = 80.0 * rand()/double(RAND_MAX);
44
 
45
 
45
 		cout << "loading " << file << endl;
46
 		cout << "loading " << file << endl;
46
 		load_raw(file,grid);
47
 		load_raw(file,grid);
47
		
48
		
48
		
-
 
49
		cout << "Polygonizing, iso = " << iso << endl;
49
		cout << "Polygonizing, iso = " << iso << endl;
50
		Manifold mani;
50
		Manifold mani;
51
 		//fair_polygonize(grid, mani, iso);
-
 
52
		cuberille_polygonize(grid, mani, iso, true);
51
		cuberille_polygonize(grid, mani, iso, true);
-
 
52
		shortest_edge_triangulate(mani);
53
		
53
 
54
		cout << "Saving" << endl;
54
		cout << "Saving" << endl;
55
		x3d_save("isosurf.x3d", mani);
55
		x3d_save("../../data/isosurf.x3d", mani);
56
}
56
}