added ::FaceBorderFLags

This commit is contained in:
ganovelli 2004-10-18 17:10:22 +00:00
parent 13190dfe88
commit 7903dc12a1
1 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.13 2004/10/01 15:58:00 ponchio
Added include <vector>
Revision 1.12 2004/09/09 13:02:12 ponchio Revision 1.12 2004/09/09 13:02:12 ponchio
Linux compatible path in #include 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.. /** 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) static void VertexFace(MeshType &m)