diff --git a/vcg/complex/algorithms/refine.h b/vcg/complex/algorithms/refine.h index a3772ade..f242d66f 100644 --- a/vcg/complex/algorithms/refine.h +++ b/vcg/complex/algorithms/refine.h @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -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::FaceBorderFromFF(m); typedef face::Pos PosType; int j,NewVertNum=0,NewFaceNum=0;