Subversion Repositories gelsvn

Rev

Rev 182 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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