Added FaceFromBorder
This commit is contained in:
parent
41dfe83e61
commit
5c9ed4eb3b
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.1 2006/10/16 08:50:58 cignoni
|
||||||
|
First Working Version
|
||||||
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_TRI_UPDATE_SELECTION
|
#ifndef __VCG_TRI_UPDATE_SELECTION
|
||||||
#define __VCG_TRI_UPDATE_SELECTION
|
#define __VCG_TRI_UPDATE_SELECTION
|
||||||
|
@ -205,6 +208,22 @@ static size_t FaceFromVertexLoose(MeshType &m)
|
||||||
return selCnt;
|
return selCnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static size_t FaceFromBorder(MeshType &m)
|
||||||
|
{
|
||||||
|
size_t selCnt=0;
|
||||||
|
ClearFace(m);
|
||||||
|
FaceIterator fi;
|
||||||
|
for(fi = m.face.begin(); fi != m.face.end(); ++fi)
|
||||||
|
if( !(*fi).IsD() )
|
||||||
|
{
|
||||||
|
if((*fi).IsB(0) || (*fi).IsB(1) || (*fi).IsB(2))
|
||||||
|
{
|
||||||
|
(*fi).SetS();
|
||||||
|
++selCnt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return selCnt;
|
||||||
|
}
|
||||||
|
|
||||||
}; // end class
|
}; // end class
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue