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:
eap 2010-10-22 06:20:21 +00:00
parent 7ce99178d9
commit bec23f9e68

View File

@ -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;
}
//=======================================================================