From: El Hadi Moussi Date: Thu, 8 Aug 2024 15:41:09 +0000 (+0200) Subject: Remove commented std::cout X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0cfeeb8802be5b23123362b6befa1d5528923612;p=tools%2Fmedcoupling.git Remove commented std::cout --- diff --git a/src/ShapeRecogn/AreasBuilder.cxx b/src/ShapeRecogn/AreasBuilder.cxx index fee223961..42c6a3faa 100644 --- a/src/ShapeRecogn/AreasBuilder.cxx +++ b/src/ShapeRecogn/AreasBuilder.cxx @@ -15,47 +15,22 @@ AreasBuilder::AreasBuilder(const Nodes *nodes) : nodes(nodes), areas(new Areas(n void AreasBuilder::explore() { exploreAreas(); - // std::cout << "exploreAreas ended\n"; areas->cleanInvalidNodeAreas(); - // std::cout << "cleanInvalidNodeAreas ended\n"; filterHighPass(); - // std::cout << "explore ended\n"; - // std::cout << "-------\n"; - // for (mcIdType areaId = 0; areaId < areas->getNumberOfAreas(); ++areaId) - // { - // std::cout << "area " << areaId << ": " - // << areas->getNumberOfNodes(areaId) << ", " - // << areas->getPrimitiveTypeName(areaId) - // << "\n"; - // } } void AreasBuilder::expand() { expandAreas(); - // std::cout << "expandAreas ended\n"; filterHighPass(); - // std::cout << "expand ended\n"; - // std::cout << "-------\n"; - // for (mcIdType areaId = 0; areaId < areas->getNumberOfAreas(); ++areaId) - // { - // std::cout << "area " << areaId << ": " - // << areas->getNumberOfNodes(areaId) << ", " - // << areas->getPrimitiveTypeName(areaId) - // << "\n"; - // } } void AreasBuilder::rebuild() { rebuildInvalidAreas(); - // std::cout << "rebuildInvalidAreas ended\n"; filterHighPass(); - // std::cout << "filterHighPass ended\n"; expandAreasByType(PrimitiveType::Cone); - // std::cout << "expandAreas Cone ended\n"; filterHighPass(); - // std::cout << "rebuild ended\n"; } Areas *AreasBuilder::getAreas() const @@ -83,17 +58,6 @@ void AreasBuilder::exploreAreas() else areaId = areas->addArea(nodes->getPrimitiveType(nodeId)); areas->addNode(areaId, nodeId); - // if (nbNodesExplored % 1 == 0) - // { - // std::cout << "nodeId: " << nodeId << " " << convertPrimitiveToString(nodes->getPrimitiveType(nodeId)) << "\n"; - // std::cout << "nbNodesExplored (current area: " - // << areaId - // << ", " - // << areas->getPrimitiveTypeName(areaId) - // << "): " - // << nbNodesExplored - // << "\n"; - // } const std::vector neighbors = nodes->getNeighbors(nodeId); for (mcIdType neighborId : neighbors) { @@ -108,19 +72,6 @@ void AreasBuilder::exploreAreas() nodesToExplore.erase(neighborId); if (doesItMatch(areaId, neighborId)) { - // if (!exploredNodeIds[neighborId]) - // nbNodesExplored += 1; - // if (areas->getNumberOfNodes(areaId) % 500 == 0) - // { - // std::cout << "nbNodesExplored (current area: " - // << areaId - // << ", " << areas->getPrimitiveTypeName(areaId) - // << ", " << areas->getNumberOfNodes(areaId) - // << "): " - // << nbNodesExplored - // << "\n"; - // std::cout << "neighborId: " << neighborId << " " << convertPrimitiveToString(nodes->getPrimitiveType(neighborId)) << "\n"; - // } exploredNodeIds[neighborId] = true; areas->addNode(areaId, neighborId); const std::vector neighborsOfNeighbor = nodes->getNeighbors(neighborId); diff --git a/src/ShapeRecogn/NodeCurvatureCalculator.cxx b/src/ShapeRecogn/NodeCurvatureCalculator.cxx index 1b40ea8d2..e6e950d36 100644 --- a/src/ShapeRecogn/NodeCurvatureCalculator.cxx +++ b/src/ShapeRecogn/NodeCurvatureCalculator.cxx @@ -18,9 +18,7 @@ Nodes *NodeCurvatureCalculator::compute() mesh->computeNeighborsOfNodes(neighbors, neighborsIdx); nodes = new Nodes(mesh, neighbors, neighborsIdx); computeNormals(); - // std::cout << "computeNormals ended\n"; computeCurvatures(); - // std::cout << "computeCurvatures ended\n"; return nodes; }