Subversion Repositories gelsvn

Rev

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

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