diff --git a/src/Topology/map/map3.cpp b/src/Topology/map/map3.cpp index 8adb3e32ed8e17c1a945e8a07dadd17f92e8478d..f74a411006b5f5973054b05dff721a935b8445bf 100644 --- a/src/Topology/map/map3.cpp +++ b/src/Topology/map/map3.cpp @@ -1239,20 +1239,20 @@ void Map3::reverseOrientation() void Map3::computeDual() { - unsigned int count = 0; - CellMarkerNoUnmark cv(*this); - std::vector v; - for(Dart d = begin(); d != end(); next(d)) - { - if(!cv.isMarked(d) && isBoundaryMarked3(d)) - { - ++count; - v.push_back(d); - cv.mark(d); - } - } - - std::cout << "boundary vertices : " << count << std::endl; +// unsigned int count = 0; +// CellMarkerNoUnmark cv(*this); +// std::vector v; +// for(Dart d = begin(); d != end(); next(d)) +// { +// if(!cv.isMarked(d) && isBoundaryMarked3(d)) +// { +// ++count; +// v.push_back(d); +// cv.mark(d); +// } +// } +// +// std::cout << "boundary vertices : " << count << std::endl; DartAttribute old_phi1 = getAttribute("phi1") ; DartAttribute old_phi_1 = getAttribute("phi_1") ; @@ -1283,28 +1283,28 @@ void Map3::computeDual() swapEmbeddingContainers(VERTEX, VOLUME) ; - for(std::vector::iterator it = v.begin() ; it != v.end() ; ++it) - { - boundaryUnmarkOrbit(*it); - } +// for(std::vector::iterator it = v.begin() ; it != v.end() ; ++it) +// { +// boundaryUnmarkOrbit(*it); +// } +// +// for(std::vector::iterator it = v.begin() ; it != v.end() ; ++it) +// { +// deleteVolume(*it); +// } +// +// closeMap(); - for(std::vector::iterator it = v.begin() ; it != v.end() ; ++it) + //boundary management + for(Dart d = begin(); d != end(); next(d)) { - deleteVolume(*it); - } - - closeMap(); - -// //boundary management -// for(Dart d = begin(); d != end(); next(d)) -// { -// if(isBoundaryMarked3(d)) -// { -// //boundaryMarkOrbit(d) ;//deleteVertex(d)); + if(isBoundaryMarked3(d)) + { + boundaryMarkOrbit(deleteVertex(phi1(d))); // boundaryUnmarkOrbit(d); // deleteVolume(d); -// } -// } + } + } // closeMap(); }