13 #include <boost/graph/graph_traits.hpp>
29 template<
typename MutableFaceInc
identGraph >
32 bool take_into_account_face_rientation =
false)
35 typename boost::graph_traits< MutableFaceIncidentGraph >::face_descriptor
37 std::vector< face_descriptor > faces_to_remove;
39 auto faces_range_pair =
faces(g);
40 auto iter_f = faces_range_pair.first;
41 for(; iter_f != faces_range_pair.second; ++iter_f)
43 if(std::find(faces_to_remove.begin(), faces_to_remove.end(), *iter_f) !=
44 faces_to_remove.end())
46 auto iter_f_bis = iter_f;
48 for(; iter_f_bis != faces_range_pair.second; ++iter_f_bis)
51 *iter_f, *iter_f_bis, g, take_into_account_face_rientation))
53 faces_to_remove.push_back(*iter_f_bis);
58 typename std::vector< face_descriptor >::iterator it_f(
59 faces_to_remove.begin()),
60 it_fe(faces_to_remove.end());
61 for(; it_f != it_fe; ++it_f)
63 faces_to_remove.clear();