Rev 183 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef __HMESHUTIL_BUILD_MANIFOLD_H__
#define __HMESHUTIL_BUILD_MANIFOLD_H__
#include <vector>
#include "HMesh/Manifold.h"
namespace HMesh
{
void close_holes(Manifold& m);
/** Build a manifold from an indexed face set. The arguments are
the manifold m, the number of vertices, no_vertices, the vector
of vertices, vertvec, the number of faces, no_faces. facevec
is an array where each entry indicates the number of vertices
in that face. The array indices contains all the corresponding
vertex indices in one concatenated list. touch is an optional array
of touch values for the vertices. */
void build_manifold(HMesh::Manifold& m,
int no_vertices,
const CGLA::Vec3f* vertvec,
int no_faces,
const int *facevec,
const int * indices,
const int * touch=0);
}
#endif