]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Remove commented std::cout
authorEl Hadi Moussi <moussi@phimeca.com>
Thu, 8 Aug 2024 15:41:09 +0000 (17:41 +0200)
committerEl Hadi Moussi <moussi@phimeca.com>
Thu, 8 Aug 2024 15:41:09 +0000 (17:41 +0200)
src/ShapeRecogn/AreasBuilder.cxx
src/ShapeRecogn/NodeCurvatureCalculator.cxx

index fee22396145810f7b118220b408f90244e870d21..42c6a3faa271620b7084c39c212f72d48bc89b05 100644 (file)
@@ -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<mcIdType> 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<mcIdType> neighborsOfNeighbor = nodes->getNeighbors(neighborId);
index 1b40ea8d2c49e5cfb78a95d764443eadab700180..e6e950d36ba133b93d39a7ad1f3eaa0ed4a4bf52 100644 (file)
@@ -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;
 }