mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 10:40:34 +05:00
In RemoveElement(), find sub-mesh by elt->getshapeId()
This commit is contained in:
parent
5bdade8015
commit
e74e528833
@ -915,11 +915,12 @@ void SMESHDS_Mesh::RemoveElement(const SMDS_MeshElement * elt)
|
|||||||
if (!hasConstructionEdges() && !hasConstructionFaces())
|
if (!hasConstructionEdges() && !hasConstructionFaces())
|
||||||
{
|
{
|
||||||
SMESHDS_SubMesh* subMesh=0;
|
SMESHDS_SubMesh* subMesh=0;
|
||||||
map<int,SMESHDS_SubMesh*>::iterator SubIt = myShapeIndexToSubMesh.begin();
|
if ( elt->getshapeId() > 0 )
|
||||||
for ( ; !subMesh && SubIt != myShapeIndexToSubMesh.end(); SubIt++ )
|
{
|
||||||
if (!SubIt->second->IsComplexSubmesh() && SubIt->second->Contains( elt ))
|
map<int,SMESHDS_SubMesh*>::iterator SubIt = myShapeIndexToSubMesh.find( elt->getshapeId() );
|
||||||
|
if ( SubIt != myShapeIndexToSubMesh.end() )
|
||||||
subMesh = SubIt->second;
|
subMesh = SubIt->second;
|
||||||
//MESSAGE("subMesh " << elt->getshapeId());
|
}
|
||||||
RemoveFreeElement( elt, subMesh, true);
|
RemoveFreeElement( elt, subMesh, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user