adapted VVStarVF to work with polygonal meshes as well

This commit is contained in:
Luigi Malomo 2018-07-15 15:05:01 +02:00
parent d5831911d2
commit 9af6950914
1 changed files with 13 additions and 12 deletions

View File

@ -799,8 +799,9 @@ void VVStarVF( typename FaceType::VertexType* vp, std::vector<typename FaceType:
face::VFIterator<FaceType> vfi(vp);
while(!vfi.End())
{
const int vn = vfi.F()->VN();
starVec.push_back(vfi.F()->V1(vfi.I()));
starVec.push_back(vfi.F()->V2(vfi.I()));
starVec.push_back(vfi.F()->V((vfi.I()+vn-1)%vn));
++vfi;
}