Subversion Repositories gelsvn

Rev

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

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