0021559: EDF 2175 SMESH: Hexa/Tetra mixed meshes

Improve GetAlgo()
This commit is contained in:
eap 2012-09-11 13:20:29 +00:00
parent 118122435c
commit 7a940415de

View File

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