Small refactoring
This commit is contained in:
parent
2e139b10a6
commit
7d1431f314
|
@ -147,13 +147,10 @@ void Retract(KdTree<ScalarType> &kdtree, MeshType &t)
|
||||||
std::stack<VertexType *> vertStack;
|
std::stack<VertexType *> vertStack;
|
||||||
|
|
||||||
// Put on the stack all the vertex with just a single incident edge.
|
// Put on the stack all the vertex with just a single incident edge.
|
||||||
for(VertexIterator vi=t.vert.begin();vi!=t.vert.end();++vi)
|
ForEachVertex(t, [&](VertexType &v){
|
||||||
{
|
if(edge::VEDegree<EdgeType>(&v) ==1)
|
||||||
std::vector<EdgeType *> starVec;
|
vertStack.push(&v);
|
||||||
edge::VEStarVE(&*vi,starVec);
|
});
|
||||||
if(starVec.size()==1)// && !IsBoundaryVertexOnBase(kdtree, vi->cP()))
|
|
||||||
vertStack.push(&*vi);
|
|
||||||
}
|
|
||||||
|
|
||||||
tri::UpdateFlags<MeshType>::EdgeClearV(t);
|
tri::UpdateFlags<MeshType>::EdgeClearV(t);
|
||||||
tri::UpdateFlags<MeshType>::VertexClearV(t);
|
tri::UpdateFlags<MeshType>::VertexClearV(t);
|
||||||
|
|
Loading…
Reference in New Issue