Subversion Repositories gelsvn

Rev

Rev 182 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 182 Rev 183
1
#ifndef __HMESHUTIL_BUILD_MANIFOLD_H__
1
#ifndef __HMESHUTIL_BUILD_MANIFOLD_H__
2
#define __HMESHUTIL_BUILD_MANIFOLD_H__
2
#define __HMESHUTIL_BUILD_MANIFOLD_H__
3
 
3
 
4
#include <vector>
4
#include <vector>
5
#include "HMesh/Manifold.h"
5
#include "HMesh/Manifold.h"
6
 
6
 
7
namespace HMesh
7
namespace HMesh
8
{
8
{
-
 
9
		
-
 
10
	void close_holes(Manifold& m);
-
 
11
 
-
 
12
 
9
  /** Build a manifold from an indexed face set. The arguments are 
13
  /** Build a manifold from an indexed face set. The arguments are 
10
      the manifold m, the number of vertices, no_vertices, the vector 
14
      the manifold m, the number of vertices, no_vertices, the vector 
11
      of vertices, vertvec, the number of faces, no_faces. facevec 
15
      of vertices, vertvec, the number of faces, no_faces. facevec 
12
      is an array where each entry indicates the number of vertices
16
      is an array where each entry indicates the number of vertices
13
      in that face. The array indices contains all the corresponding 
17
      in that face. The array indices contains all the corresponding 
14
      vertex indices in one concatenated list. touch is an optional array 
18
      vertex indices in one concatenated list. touch is an optional array 
15
      of touch values for the vertices. */
19
      of touch values for the vertices. */
16
	void build_manifold(HMesh::Manifold& m,
20
	void build_manifold(HMesh::Manifold& m,
17
			    int no_vertices,
21
			    int no_vertices,
18
			    const CGLA::Vec3f* vertvec,
22
			    const CGLA::Vec3f* vertvec,
19
			    int no_faces,
23
			    int no_faces,
20
			    const int *facevec,
24
			    const int *facevec,
21
			    const int * indices,
25
			    const int * indices,
22
			    const int * touch=0);
26
			    const int * touch=0);
23
	
27
	
24
}
28
}
25
 
29
 
26
#endif
30
#endif
27
 
31