Updated to the change of interface of VFOrderedStarFF
This commit is contained in:
parent
7c0f42c4d7
commit
85ae6fe034
|
@ -560,17 +560,16 @@ namespace vcg {
|
||||||
///check that is on border..
|
///check that is on border..
|
||||||
if (v.IsB())return false;
|
if (v.IsB())return false;
|
||||||
|
|
||||||
std::vector<FaceType*> faces;
|
std::vector<face::Pos<FaceType>> posVec;
|
||||||
std::vector<int> edges;
|
|
||||||
//SortedFaces(v,faces);
|
//SortedFaces(v,faces);
|
||||||
vcg::face::Pos<FaceType> pos(v.cVFp(), v.cVFi());
|
face::Pos<FaceType> pos(v.cVFp(), v.cVFi());
|
||||||
vcg::face::VFOrderedStarFF(pos, faces, edges);
|
vcg::face::VFOrderedStarFF(pos, posVec);
|
||||||
|
|
||||||
missmatch=0;
|
missmatch=0;
|
||||||
for (unsigned int i=0;i<faces.size();i++)
|
for (unsigned int i=0;i<faces.size();i++)
|
||||||
{
|
{
|
||||||
FaceType *curr_f=faces[i];
|
FaceType *curr_f=posVec[i].F();
|
||||||
FaceType *next_f=faces[(i+1)%faces.size()];
|
FaceType *next_f=posVec[(i+1)%faces.size()].F();
|
||||||
|
|
||||||
///find the current missmatch
|
///find the current missmatch
|
||||||
missmatch+=MissMatchByCross(*curr_f,*next_f);
|
missmatch+=MissMatchByCross(*curr_f,*next_f);
|
||||||
|
|
Loading…
Reference in New Issue