changed to the face::IsBorder() style

This commit is contained in:
Paolo Cignoni 2004-03-10 00:48:06 +00:00
parent 68beee8a27
commit 78e4cccaba
2 changed files with 8 additions and 2 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.1 2004/03/05 10:59:24 cignoni
Changed name from plural to singular (normals->normal)
****************************************************************************/ ****************************************************************************/
#ifndef __VCG_TRI_UPDATE_COLOR #ifndef __VCG_TRI_UPDATE_COLOR
@ -77,7 +80,7 @@ static void FaceBF(MeshType &m, Color4b vn=Color4b::White, Color4b vb=Color4b::B
else else
{ {
for(int j=0;j<3;++j) for(int j=0;j<3;++j)
if((*fi).IsManifold(j)){ if(face::IsManifold(*fi,j)){
if((*fi).IsB(j)){ if((*fi).IsB(j)){
(*fi).C() = vb; (*fi).C() = vb;
(*fi).C() = vb; (*fi).C() = vb;

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.1 2004/03/05 10:59:24 cignoni
Changed name from plural to singular (normals->normal)
Revision 1.1 2004/03/04 00:37:56 cignoni Revision 1.1 2004/03/04 00:37:56 cignoni
First working version! First working version!
@ -58,7 +61,7 @@ static void FaceBorderFromFF(MeshType &m)
{ {
//if(!(*fi).IsManifold(j)) (*fi).SetCF(j); //if(!(*fi).IsManifold(j)) (*fi).SetCF(j);
//else //else
if((*fi).IsBorder(j)) (*fi).SetB(j); if(face::IsBorder(*fi,j)) (*fi).SetB(j);
else (*fi).ClearB(j); else (*fi).ClearB(j);
} }
} }