]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021559: EDF 2175 SMESH: Hexa/Tetra mixed meshes
authoreap <eap@opencascade.com>
Tue, 11 Sep 2012 13:20:29 +0000 (13:20 +0000)
committereap <eap@opencascade.com>
Tue, 11 Sep 2012 13:20:29 +0000 (13:20 +0000)
Improve GetAlgo()

src/SMESH/SMESH_Gen.cxx

index 99da9f8e4ce877f559ab8dea667f1fb71b46a85a..29faef59642973b4b6dce4615924862d65d68b78 100644 (file)
@@ -1123,7 +1123,7 @@ SMESH_Algo *SMESH_Gen::GetAlgo(SMESH_Mesh &         aMesh,
         if ( SMESH_Algo* algo3D = (SMESH_Algo*) aMesh.GetHypothesis( *solid, filter, true ))
         {
           algos3D.push_back( algo3D );
-          filter.AndNot( filter.Is( algo3D ));
+          filter.AndNot( filter.HasName( algo3D->GetName() ));
         }
       // check compatibility of algos
       if ( algos3D.size() > 1 )