mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-03 21:20:32 +05:00
0021153: [CEA] non regression test fails
Fix RemoveNode() and RemoveElement(): erase only elements belonging to this sub-mesh
This commit is contained in:
parent
7d73daf123
commit
df50de7d46
@ -126,8 +126,8 @@ bool SMESHDS_SubMesh::RemoveElement(const SMDS_MeshElement * ME, bool isElemDele
|
||||
//MESSAGE("-----------------> RemoveElement "<< ME->GetID() << " " << isElemDeleted);
|
||||
if (!IsComplexSubmesh())
|
||||
{
|
||||
// if (!isElemDeleted) // alive element has valid ID and can be found
|
||||
// {
|
||||
if ( ME->getshapeId() != myIndex )
|
||||
return false;
|
||||
int idInSubShape = ME->getIdInShape();
|
||||
//MESSAGE("in "<< myIndex << " RemoveElement " << ME->GetID() << " " << idInSubShape << " " << myUnusedIdElements);
|
||||
SMDS_MeshElement* elem = (SMDS_MeshElement*) (ME);
|
||||
@ -182,6 +182,8 @@ bool SMESHDS_SubMesh::RemoveNode(const SMDS_MeshNode * N, bool isNodeDeleted)
|
||||
{
|
||||
// if (!isNodeDeleted) // alive node has valid ID and can be found
|
||||
// {
|
||||
if ( N->getshapeId() != myIndex )
|
||||
return false;
|
||||
int idInSubShape = N->getIdInShape();
|
||||
//int shapeId = N->getshapeId();
|
||||
//MESSAGE("in "<< myIndex << " RemoveNode " << shapeId << " " << idInSubShape << " " << N->GetID());
|
||||
|
Loading…
Reference in New Issue
Block a user