Added tri::UpdateFlags<MESH_TYPE>::FaceBorderFromFF(m); to the basic refine call.

In order to move these per face flags in less places as possible...
This commit is contained in:
Paolo Cignoni 2012-07-04 15:25:21 +00:00
parent b2e2bfe2df
commit cd1ae00082
1 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@
#include <vcg/simplex/face/topology.h>
#include<vcg/complex/allocate.h>
#include<vcg/complex/algorithms/update/topology.h>
#include<vcg/complex/algorithms/update/flag.h>
#include<wrap/callback.h>
#include <vcg/complex/complex.h>
#include <vcg/space/triangle3.h>
@ -313,7 +314,8 @@ bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false,
typedef typename MESH_TYPE::FacePointer FacePointer;
typedef typename MESH_TYPE::FaceType FaceType;
typedef typename MESH_TYPE::FaceType::TexCoordType TexCoordType;
assert(tri::HasFFAdjacency(m));
tri::UpdateFlags<MESH_TYPE>::FaceBorderFromFF(m);
typedef face::Pos<FaceType> PosType;
int j,NewVertNum=0,NewFaceNum=0;