mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
22368: EDF SMESH: Pattern mapping to assign new nodes to sub-shapes
In GetSortedNodesOnEdge(), do not return false if there are nodes but no segments on an EDGE
This commit is contained in:
parent
1d6cfba4c1
commit
a0ac827df3
@ -410,7 +410,7 @@ bool SMESH_Algo::GetSortedNodesOnEdge(const SMESHDS_Mesh* theM
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
SMESHDS_SubMesh * eSubMesh = theMesh->MeshElements( theEdge );
|
SMESHDS_SubMesh * eSubMesh = theMesh->MeshElements( theEdge );
|
||||||
if ( !eSubMesh || !eSubMesh->GetElements()->more() )
|
if ( !eSubMesh || ( eSubMesh->NbElements()==0 && eSubMesh->NbNodes() == 0))
|
||||||
return false; // edge is not meshed
|
return false; // edge is not meshed
|
||||||
|
|
||||||
int nbNodes = 0;
|
int nbNodes = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user