mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Minor improvements in debug output
This commit is contained in:
parent
f603db5e84
commit
9918c1e97d
2 changed files with 13 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue