[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,12 +728,14 @@ 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 )); nodesOnSeam.push_back( make_pair( u, n ));
++nbNodesOnSeam; ++nbNodesOnSeam;
} }
} }
} }
}
// sort the found nodes by U on the seamEdge; most probably they are in a good order, // sort the found nodes by U on the seamEdge; most probably they are in a good order,
// so we can use the hint to spead-up map filling // so we can use the hint to spead-up map filling
map< double, const SMDS_MeshNode* > u2nodeMap; map< double, const SMDS_MeshNode* > u2nodeMap;