Minor improvements in debug output

This commit is contained in:
Alessandro Ranellucci 2013-10-13 12:12:03 +02:00
parent f603db5e84
commit 9918c1e97d
2 changed files with 13 additions and 5 deletions

View file

@ -375,6 +375,9 @@ TriangleMesh::slice(const std::vector<double> &z)
std::vector<Polygons>* layers = new std::vector<Polygons>(z.size());
for (std::vector<IntersectionLines>::iterator it = lines.begin(); it != lines.end(); ++it) {
int layer_idx = it - lines.begin();
#ifdef SLIC3R_DEBUG
printf("Layer %d:\n", layer_idx);
#endif
// remove tangent edges
for (IntersectionLines::iterator line = it->begin(); line != it->end(); ++line) {
@ -473,6 +476,9 @@ TriangleMesh::slice(const std::vector<double> &z)
// we can't close this loop!
//// push @failed_loops, [@loop];
#ifdef SLIC3R_DEBUG
printf(" Unable to close this loop having %d points\n", (int)loop.size());
#endif
goto CYCLE;
}
/*