mirror of https://github.com/CGAL/cgal
add validity check
This commit is contained in:
parent
0eb3fb2848
commit
2bc950041c
|
|
@ -36,6 +36,9 @@ bool save_binary_triangulation(std::ostream& os, const T3& t3)
|
|||
template<typename T3>
|
||||
void save_ascii_triangulation(const char* filename, const T3& t3)
|
||||
{
|
||||
if (!t3.is_valid(true))
|
||||
std::cerr << "Invalid triangulation!" << std::endl;
|
||||
|
||||
CGAL::Tetrahedral_remeshing::debug::dump_triangulation_cells(
|
||||
t3, filename);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue