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