0020279: [CEA 334] control the "random" use when using mesh algorithms

fix SetSourceMesh(): set mesh before calling NotifySubMeshesHypothesisModification()
This commit is contained in:
eap 2009-05-19 15:35:17 +00:00
parent eb2c096f8e
commit e07947533e
3 changed files with 9 additions and 6 deletions

View File

@ -126,9 +126,10 @@ void StdMeshers_ProjectionSource1D::SetVertexAssociation(const TopoDS_Shape& sou
void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh) void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh)
{ {
if ( _sourceMesh != mesh ) if ( _sourceMesh != mesh ) {
NotifySubMeshesHypothesisModification();
_sourceMesh = mesh; _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
}
} }
//============================================================================= //=============================================================================

View File

@ -136,9 +136,10 @@ void StdMeshers_ProjectionSource2D::SetVertexAssociation(const TopoDS_Shape& sou
void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh) void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh)
{ {
if ( _sourceMesh != mesh ) if ( _sourceMesh != mesh ) {
NotifySubMeshesHypothesisModification();
_sourceMesh = mesh; _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
}
} }
//============================================================================= //=============================================================================

View File

@ -135,9 +135,10 @@ void StdMeshers_ProjectionSource3D::SetVertexAssociation(const TopoDS_Shape& sou
void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh) void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh)
{ {
if ( _sourceMesh != mesh ) if ( _sourceMesh != mesh ) {
NotifySubMeshesHypothesisModification();
_sourceMesh = mesh; _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
}
} }
//============================================================================= //=============================================================================