Commit 2aa9ef9a authored by Pierre Kraemer's avatar Pierre Kraemer
Browse files

Traversor2VVaF debug (missed a vertex after boundary face jump)

parent 878c41f4
......@@ -41,7 +41,7 @@ void exportMeshPlain(std::ofstream& out, typename PFP::MAP& map, VertexAttribute
TraversorF<typename PFP::MAP > travF(map);
for(Dart d = travF.begin() ; d!= travF.end() ; travF.next(d))
for(Dart d = travF.begin() ; d!= travF.end() ; d = travF.next())
{
if(good(d))
{
......
......@@ -166,7 +166,11 @@ Dart Traversor2VVaF<MAP>::next()
{
Dart d = m.phi2(m.phi_1(current)) ;
if(m.isBoundaryMarked(d)) // jump over a boundary face
{
d = m.phi2(m.phi_1(d)) ;
current = m.phi1(d);
}
else
current = m.phi1(m.phi1(d)) ;
if(current == d)
current = m.phi1(d) ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment