diff options
author | bubnikv <bubnikv@gmail.com> | 2017-03-03 15:31:51 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-03-03 15:31:51 +0300 |
commit | 4de33effdc91fedf2d3ecefc51bac107ed8d739a (patch) | |
tree | 91c38981d3c6b39bad4f869afc1c1db6c747ed47 /xs | |
parent | 930e6752d9f60b2c90e1a729e31bf5ff876a7001 (diff) |
Tracing of TriangleMesh repair.
Diffstat (limited to 'xs')
-rw-r--r-- | xs/src/libslic3r/TriangleMesh.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xs/src/libslic3r/TriangleMesh.cpp b/xs/src/libslic3r/TriangleMesh.cpp index 195092773..c7be05ef6 100644 --- a/xs/src/libslic3r/TriangleMesh.cpp +++ b/xs/src/libslic3r/TriangleMesh.cpp @@ -154,6 +154,8 @@ TriangleMesh::repair() { // admesh fails when repairing empty meshes if (this->stl.stats.number_of_facets == 0) return; + + BOOST_LOG_TRIVIAL(debug) << "TriangleMesh::repair() started"; // checking exact stl_check_facets_exact(&stl); @@ -204,6 +206,8 @@ TriangleMesh::repair() { stl_verify_neighbors(&stl); this->repaired = true; + + BOOST_LOG_TRIVIAL(debug) << "TriangleMesh::repair() finished"; } void @@ -537,8 +541,14 @@ TriangleMesh::bounding_box() const void TriangleMesh::require_shared_vertices() { - if (!this->repaired) this->repair(); - if (this->stl.v_shared == NULL) stl_generate_shared_vertices(&(this->stl)); + BOOST_LOG_TRIVIAL(trace) << "TriangleMeshSlicer::require_shared_vertices - start"; + if (!this->repaired) + this->repair(); + if (this->stl.v_shared == NULL) { + BOOST_LOG_TRIVIAL(trace) << "TriangleMeshSlicer::require_shared_vertices - stl_generate_shared_vertices"; + stl_generate_shared_vertices(&(this->stl)); + } + BOOST_LOG_TRIVIAL(trace) << "TriangleMeshSlicer::require_shared_vertices - end"; } |