[CEA] Wrong mesh generated by Import1D2D on a cylindrical hole and sometime crash

This commit is contained in:
Ekaterina Sukhareva 2024-07-09 09:33:29 +01:00
parent 066445b0e6
commit e451350be3

View File

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