Added the automatic fixing of the constrained vertices after the constrained relaxation.

This commit is contained in:
Paolo Cignoni 2014-05-13 15:34:26 +00:00
parent 5b4357f9bb
commit 53dbae6626
1 changed files with 2 additions and 1 deletions

View File

@ -1262,11 +1262,12 @@ static int VoronoiRelaxing(MeshType &m, std::vector<VertexType *> &seedVec,
if(vpp.relaxOnlyConstrainedFlag)
{
std::swap(seedVec,selectedVec);
int i=0,j=0;
int i,j;
for(i=0,j=0;i<seedVec.size();++i){
if(seedVec[i]->IsS())
{
seedVec[i]=selectedVec[j];
fixed[seedVec[i]]=true;
++j;
}
}