Commit 455dc609 authored by Sylvain Thery's avatar Sylvain Thery

optimize gmap2::deleteCC

parent 4f71806d
...@@ -204,7 +204,7 @@ void GMap2<MAP_IMPL>::deleteFace(Dart d) ...@@ -204,7 +204,7 @@ void GMap2<MAP_IMPL>::deleteFace(Dart d)
template <typename MAP_IMPL> template <typename MAP_IMPL>
void GMap2<MAP_IMPL>::deleteCC(Dart d) void GMap2<MAP_IMPL>::deleteCC(Dart d)
{ {
DartMarkerStore<GMap2<MAP_IMPL> > mark(*this); DartMarkerNoUnmark<MAP_IMPL> mark(*this);
std::vector<Dart> visited; std::vector<Dart> visited;
visited.reserve(1024) ; visited.reserve(1024) ;
...@@ -234,7 +234,10 @@ void GMap2<MAP_IMPL>::deleteCC(Dart d) ...@@ -234,7 +234,10 @@ void GMap2<MAP_IMPL>::deleteCC(Dart d)
} }
for(std::vector<Dart>::iterator it = visited.begin(); it != visited.end(); ++it) for(std::vector<Dart>::iterator it = visited.begin(); it != visited.end(); ++it)
{
mark.unmark(*it);
this->deleteDart(*it) ; this->deleteDart(*it) ;
}
} }
template <typename MAP_IMPL> template <typename MAP_IMPL>
......
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