mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
PAL21999 Pattern Mapping - New - collapse of pattern mesh
Set mesh modified if a pattern is applied to already computed mesh
This commit is contained in:
parent
7ce99178d9
commit
bec23f9e68
@ -387,7 +387,14 @@ CORBA::Boolean SMESH_Pattern_i::MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
|
||||
<< CreatePolygons << ", " << CreatePolyedrs << " )";
|
||||
addErrorCode( "MakeMesh" );
|
||||
|
||||
return myPattern.MakeMesh( aMesh, CreatePolygons, CreatePolyedrs );
|
||||
int nb = aMesh->NbNodes() + aMesh->NbEdges() + aMesh->NbFaces() + aMesh->NbVolumes();
|
||||
|
||||
bool res = myPattern.MakeMesh( aMesh, CreatePolygons, CreatePolyedrs );
|
||||
|
||||
if ( nb > 0 && nb != aMesh->NbNodes() + aMesh->NbEdges() + aMesh->NbFaces() + aMesh->NbVolumes())
|
||||
aMesh->SetIsModified(true);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user