]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
[CEA] Wrong mesh generated by Import1D2D on a cylindrical hole and sometime crash eksu/42244 50/head
authorEkaterina Sukhareva <ekaterina.sukhareva@opencascade.com>
Tue, 9 Jul 2024 08:33:29 +0000 (09:33 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 15 Oct 2024 07:59:53 +0000 (09:59 +0200)
src/StdMeshers/StdMeshers_Import_1D2D.cxx

index c39526b4502d2978e2a03606ea30ba61ec6f37b7..eb379e79747d0d065ef1bb08c9f0a7d837cdf836 100644 (file)
@@ -728,9 +728,11 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
           {
             const SMDS_MeshNode* n = face->GetNode( i );
             if ( n == startNode || !checkedNodes.insert( n ).second ) continue;
-            helper.CheckNodeU( seamEdge, n, u=0, projTol, /*force=*/true );
-            nodesOnSeam.push_back( make_pair( u, n ));
-            ++nbNodesOnSeam;
+            if(helper.CheckNodeU( seamEdge, n, u=0, projTol, /*force=*/true ))
+            {
+              nodesOnSeam.push_back( make_pair( u, n ));
+              ++nbNodesOnSeam;
+            }
           }
         }
       }