added EdgeCount method for counting selected edges
This commit is contained in:
parent
06d481f5de
commit
059a2f220b
|
@ -187,6 +187,15 @@ static size_t FaceCount(MeshType &m)
|
|||
return selCnt;
|
||||
}
|
||||
|
||||
static size_t EdgeCount(MeshType &m)
|
||||
{
|
||||
size_t selCnt=0;
|
||||
EdgeIterator ei;
|
||||
for(ei=m.edge.begin();ei!=m.edge.end();++ei)
|
||||
if(!(*ei).IsD() && (*ei).IsS()) ++selCnt;
|
||||
return selCnt;
|
||||
}
|
||||
|
||||
static size_t VertexCount(MeshType &m)
|
||||
{
|
||||
size_t selCnt=0;
|
||||
|
|
Loading…
Reference in New Issue