Subversion Repositories gelsvn

Rev

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

Rev 107 Rev 178
Line 1... Line 1...
1
#include <iostream>
1
#include <iostream>
2
 
2
 
3
#include "HMeshUtil/x3d_load.h"
3
#include "HMesh/x3d_load.h"
4
#include "HMeshUtil/x3d_save.h"
4
#include "HMesh/x3d_save.h"
5
 
5
 
6
using namespace std;
6
using namespace std;
7
using namespace HMesh;
7
using namespace HMesh;
8
using namespace HMeshUtil;
-
 
9
 
8
 
10
int main(int argc, char** argv)
9
int main(int argc, char** argv)
11
{
10
{
12
	Manifold m;
11
	Manifold m;
13
	if(argc>1)
12
	if(argc>1)
Line 23... Line 22...
23
			while(h != m.halfedges_end())
22
			while(h != m.halfedges_end())
24
      {
23
      {
25
        if(is_boundary(h))
24
        if(is_boundary(h))
26
        {
25
        {
27
          did_work = true;
26
          did_work = true;
28
					VertexIter v = h->opp->vert;
-
 
29
					m.collapse_halfedge(v,h);
27
					m.collapse_halfedge(h);
30
					break;
28
					break;
31
				}
29
				}
32
				++h;
30
				++h;
33
			}
31
			}
34
		}
32
		}