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

Traversor2VVaF debug (missed a vertex after boundary face jump)

parent 878c41f4
......@@ -17,7 +17,7 @@
* along with this library; if not, write to the Free Software Foundation, *
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
* *
* Web site: http://cgogn.unistra.fr/ *
* Web site: http://cgogn.unistra.fr/ *
* Contact information: cgogn@unistra.fr *
* *
*******************************************************************************/
......
......@@ -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,8 +166,12 @@ 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(m.phi1(d)) ;
current = m.phi1(d);
}
else
current = m.phi1(m.phi1(d)) ;
if(current == d)
current = m.phi1(d) ;
stop = 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