comment debug function

This commit is contained in:
Sébastien Loriot 2016-12-13 11:16:38 +01:00
parent 55c3e1ad61
commit 572cf361b4
1 changed files with 10 additions and 10 deletions

View File

@ -63,16 +63,16 @@ void translate(Triangle_mesh& tm,
tm.point(vi) = tm.point(vi)+tslt;
}
void dump_constrained_edges(const Triangle_mesh& tm, const Constrained_edge_map& ecm, const char* fname)
{
std::ofstream output(fname);
BOOST_FOREACH(Triangle_mesh::Edge_index e, tm.edges())
{
if ( get(ecm, e) )
output << "2 " << tm.point( tm.vertex(e, 0) )
<< " " << tm.point( tm.vertex(e, 1) ) << "\n";
}
}
// void dump_constrained_edges(const Triangle_mesh& tm, const Constrained_edge_map& ecm, const char* fname)
// {
// std::ofstream output(fname);
// BOOST_FOREACH(Triangle_mesh::Edge_index e, tm.edges())
// {
// if ( get(ecm, e) )
// output << "2 " << tm.point( tm.vertex(e, 0) )
// << " " << tm.point( tm.vertex(e, 1) ) << "\n";
// }
// }
std::size_t
count_constrained_edges(const Triangle_mesh& tm, const Constrained_edge_map& ecm)