From 7903dc12a1b24bfb58cc75e6a801f8b295ecde3c Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 18 Oct 2004 17:10:22 +0000 Subject: [PATCH] added ::FaceBorderFLags --- vcg/complex/trimesh/update/topology.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vcg/complex/trimesh/update/topology.h b/vcg/complex/trimesh/update/topology.h index e4bc107b..500fb2fd 100644 --- a/vcg/complex/trimesh/update/topology.h +++ b/vcg/complex/trimesh/update/topology.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.13 2004/10/01 15:58:00 ponchio +Added include + Revision 1.12 2004/09/09 13:02:12 ponchio Linux compatible path in #include @@ -209,6 +212,19 @@ static void FaceFace(MeshType &m) } } +/** Update the Faces' border flag (it assumes Face-Face Topology has been computed. +*/ +static void FaceBorderFlags(MeshType &m) +{ + FaceIterator pf; + for(pf=m.face.begin();pf!=m.face.end();++pf) // Lo riempio con i dati delle facce + if( ! (*pf).IsD() ) + for(int j=0;j<3;++j) + if((*pf).IsBorder(j)) + (*pf).SetB(j); + +} + /** Update the Vertex-Face topological relation by allowing to retrieve for each vertex the list of faces sharing this vertex.. */ static void VertexFace(MeshType &m)