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
}
//close the intersections
map.closeMap() ;
map.closeMap(false) ;
//embed the path
for (Dart d = map.begin() ; d != map.end() ; map.next(d))
......
......@@ -475,7 +475,7 @@ public:
* These faces are marked as boundary.
* @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)
return countEdges ;
}
unsigned int Map2::closeMap()
unsigned int Map2::closeMap(bool forboundary)
{
// Search the map for topological holes (fix points of phi2)
unsigned int nb = 0 ;
......@@ -915,7 +915,7 @@ unsigned int Map2::closeMap()
if (phi2(d) == d)
{
++nb ;
closeHole(d);
closeHole(d, forboundary);
}
}
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