Added the automatic fixing of the constrained vertices after the constrained relaxation.
This commit is contained in:
parent
5b4357f9bb
commit
53dbae6626
|
@ -1262,11 +1262,12 @@ static int VoronoiRelaxing(MeshType &m, std::vector<VertexType *> &seedVec,
|
||||||
if(vpp.relaxOnlyConstrainedFlag)
|
if(vpp.relaxOnlyConstrainedFlag)
|
||||||
{
|
{
|
||||||
std::swap(seedVec,selectedVec);
|
std::swap(seedVec,selectedVec);
|
||||||
int i=0,j=0;
|
int i,j;
|
||||||
for(i=0,j=0;i<seedVec.size();++i){
|
for(i=0,j=0;i<seedVec.size();++i){
|
||||||
if(seedVec[i]->IsS())
|
if(seedVec[i]->IsS())
|
||||||
{
|
{
|
||||||
seedVec[i]=selectedVec[j];
|
seedVec[i]=selectedVec[j];
|
||||||
|
fixed[seedVec[i]]=true;
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue