Commit b38a1bdc authored by David Cazier's avatar David Cazier

closeMap(bool) => pour vraiment fermer une carte

parent f2cdf37d
...@@ -490,7 +490,7 @@ bool importSVG(typename PFP::MAP& map, const std::string& filename, VertexAttrib ...@@ -490,7 +490,7 @@ bool importSVG(typename PFP::MAP& map, const std::string& filename, VertexAttrib
} }
//close the intersections //close the intersections
map.closeMap() ; map.closeMap(false) ;
//embed the path //embed the path
for (Dart d = map.begin() ; d != map.end() ; map.next(d)) for (Dart d = map.begin() ; d != map.end() ; map.next(d))
......
...@@ -475,7 +475,7 @@ public: ...@@ -475,7 +475,7 @@ public:
* These faces are marked as boundary. * These faces are marked as boundary.
* @return the number of closed holes * @return the number of closed holes
*/ */
unsigned int closeMap(); unsigned int closeMap(bool forboundary = true);
//@} //@}
}; };
......
...@@ -906,7 +906,7 @@ unsigned int Map2::closeHole(Dart d, bool forboundary) ...@@ -906,7 +906,7 @@ unsigned int Map2::closeHole(Dart d, bool forboundary)
return countEdges ; return countEdges ;
} }
unsigned int Map2::closeMap() unsigned int Map2::closeMap(bool forboundary)
{ {
// Search the map for topological holes (fix points of phi2) // Search the map for topological holes (fix points of phi2)
unsigned int nb = 0 ; unsigned int nb = 0 ;
...@@ -915,7 +915,7 @@ unsigned int Map2::closeMap() ...@@ -915,7 +915,7 @@ unsigned int Map2::closeMap()
if (phi2(d) == d) if (phi2(d) == d)
{ {
++nb ; ++nb ;
closeHole(d); closeHole(d, forboundary);
} }
} }
return nb ; return nb ;
......
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