From: Ekaterina Sukhareva Date: Tue, 9 Jul 2024 08:33:29 +0000 (+0100) Subject: [CEA] Wrong mesh generated by Import1D2D on a cylindrical hole and sometime crash X-Git-Tag: V9_14_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftlpr%2F50%2Fhead;p=modules%2Fsmesh.git [CEA] Wrong mesh generated by Import1D2D on a cylindrical hole and sometime crash --- diff --git a/src/StdMeshers/StdMeshers_Import_1D2D.cxx b/src/StdMeshers/StdMeshers_Import_1D2D.cxx index c39526b45..eb379e797 100644 --- a/src/StdMeshers/StdMeshers_Import_1D2D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D2D.cxx @@ -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; + } } } }