From ae32a4693bc65714e3c8c2a06e1091090e3b4fe4 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Wed, 27 Feb 2019 23:08:39 +0930 Subject: [PATCH] Remove comments. --- thirdparty/nodemesh/nodemesh/builder.cpp | 26 ++++++++++----------- thirdparty/nodemesh/nodemesh/combiner.cpp | 8 +++---- thirdparty/nodemesh/nodemesh/recombiner.cpp | 18 +++++++------- thirdparty/nodemesh/nodemesh/stitcher.cpp | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/thirdparty/nodemesh/nodemesh/builder.cpp b/thirdparty/nodemesh/nodemesh/builder.cpp index 56c9bdc1..554fd7b0 100644 --- a/thirdparty/nodemesh/nodemesh/builder.cpp +++ b/thirdparty/nodemesh/nodemesh/builder.cpp @@ -348,7 +348,7 @@ void Builder::insertCutVertices(const std::vector &cut, std::vector= distance) { if (swallowEdgeForNode(nodeIndex, i)) { - qDebug() << "Neighbor too near to wrap, swallow it"; + //qDebug() << "Neighbor too near to wrap, swallow it"; offsets[i] = 0; offsetsChanged = true; directSwallowed = true; @@ -456,13 +456,13 @@ bool Builder::tryWrapMultipleBranchesForNode(size_t nodeIndex, std::vector= 1.0) { if (swallowEdgeForNode(nodeIndex, edgeLoop)) { - qDebug() << "No offset to step back, swallow neighbor instead"; + //qDebug() << "No offset to step back, swallow neighbor instead"; offsets[edgeLoop] = 0; offsetsChanged = true; break; @@ -509,7 +509,7 @@ bool Builder::tryWrapMultipleBranchesForNode(size_t nodeIndex, std::vector &vertices, const std::vector(vertices, triangles); if (!CGAL::is_valid_polygon_mesh(*cgalMesh)) { - qDebug() << "Mesh is not valid polygon"; + //qDebug() << "Mesh is not valid polygon"; delete cgalMesh; cgalMesh = nullptr; } else if (CGAL::Polygon_mesh_processing::does_self_intersect(*cgalMesh)) { @@ -29,16 +29,16 @@ Combiner::Mesh::Mesh(const std::vector &vertices, const std::vector" << halfEdge.second << "exist:" << inserResult.first->first << "->" << inserResult.first->second; + //qDebug() << "Create edge loop from half edge failed, found repeated vertex link" << halfEdge.first << "->" << halfEdge.second << "exist:" << inserResult.first->first << "->" << inserResult.first->second; return false; } } @@ -53,11 +53,11 @@ bool Recombiner::convertHalfEdgesToEdgeLoops(const std::vector, size size_t j = (i + 1) % face.size(); const auto insertResult = halfEdgeToFaceMap.insert({{face[i], face[j]}, faceIndex}); if (!insertResult.second) { - qDebug() << "Non manifold edge found:" << face[i] << face[j]; + //qDebug() << "Non manifold edge found:" << face[i] << face[j]; succeed = false; } } @@ -135,7 +135,7 @@ bool Recombiner::recombine() } std::map seamVertexToIslandMap; size_t islands = splitSeamVerticesToIslands(seamLink, &seamVertexToIslandMap); - qDebug() << "Seam islands:" << islands; + //qDebug() << "Seam islands:" << islands; std::map, std::pair> edgesInSeamArea; for (size_t faceIndex = 0; faceIndex < (*m_faces).size(); ++faceIndex) { @@ -182,7 +182,7 @@ bool Recombiner::recombine() for (auto &it: islandsMap) { for (size_t side = 0; side < 2; ++side) { if (!convertHalfEdgesToEdgeLoops(it.second.halfedges[side], &it.second.edgeLoops[side])) { - qDebug() << "Convert half edges to edge loops for island" << it.first << "side" << side << "failed"; + //qDebug() << "Convert half edges to edge loops for island" << it.first << "side" << side << "failed"; it.second.edgeLoops[side].clear(); } } @@ -197,7 +197,7 @@ bool Recombiner::recombine() while ((adjustedTriangles=adjustTrianglesFromSeam(edgeLoop, it.first)) > 0) { totalAdjustedTriangles += adjustedTriangles; } - qDebug() << "Island" << it.first << "side" << side << "edge loop" << i << "adjusted" << totalAdjustedTriangles << "triangles"; + //qDebug() << "Island" << it.first << "side" << side << "edge loop" << i << "adjusted" << totalAdjustedTriangles << "triangles"; } } } @@ -217,7 +217,7 @@ bool Recombiner::recombine() copyNonSeamFacesAsRegenerated(); removeReluctantVertices(); - qDebug() << "Optimized" << m_goodSeams.size() << "seams"; + //qDebug() << "Optimized" << m_goodSeams.size() << "seams"; return true; } @@ -343,7 +343,7 @@ bool Recombiner::bridge(const std::vector &first, const std::vectorsize() << "large:" << large->size() << "matches:" << matchedPairs.size(); + //qDebug() << "small:" << small->size() << "large:" << large->size() << "matches:" << matchedPairs.size(); if (matchedPairs.empty()) return false; diff --git a/thirdparty/nodemesh/nodemesh/stitcher.cpp b/thirdparty/nodemesh/nodemesh/stitcher.cpp index 38224fda..6870f734 100644 --- a/thirdparty/nodemesh/nodemesh/stitcher.cpp +++ b/thirdparty/nodemesh/nodemesh/stitcher.cpp @@ -75,7 +75,7 @@ bool Stitcher::stitch(const std::vector, QVector3D m_wrapper->setVertices(m_positions); m_wrapper->wrap(edgeLoops); if (!m_wrapper->finished()) { - qDebug() << "Wrapping failed"; + //qDebug() << "Wrapping failed"; return false; } return true;