Go to most recent revision | Blame | Last modification | View Log | RSS feed
#include "close_holes.h"
namespace HMesh
{
void close_holes(Manifold& m)
{
for(HalfEdgeIter h=m.halfedges_begin();
h != m.halfedges_end(); ++h)
{
if(h->face == NULL_FACE_ITER)
{
FaceIter f = m.create_face();
f->last = h;
do
{
h->face = f;
h = h->next;
}
while (h->face != f);
}
}
}
}