0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm

Use aGlobIgnoAlgo->NeedLowerHyps( dim ) in checkConformIgnoredAlgos()
This commit is contained in:
eap 2013-01-28 08:13:42 +00:00
parent 3a62786158
commit 9b0f684048

View File

@ -594,8 +594,9 @@ static bool checkConformIgnoredAlgos(SMESH_Mesh& aMesh,
bool isGlobal = (aMesh.IsMainShape( aSubMesh->GetSubShape() )); bool isGlobal = (aMesh.IsMainShape( aSubMesh->GetSubShape() ));
int dim = algo->GetDim(); int dim = algo->GetDim();
int aMaxGlobIgnoDim = ( aGlobIgnoAlgo ? aGlobIgnoAlgo->GetDim() : -1 ); int aMaxGlobIgnoDim = ( aGlobIgnoAlgo ? aGlobIgnoAlgo->GetDim() : -1 );
bool isNeededDim = ( aGlobIgnoAlgo ? aGlobIgnoAlgo->NeedLowerHyps( dim ) : false );
if ( dim < aMaxGlobIgnoDim && if (( dim < aMaxGlobIgnoDim && !isNeededDim ) &&
( isGlobal || !aGlobIgnoAlgo->SupportSubmeshes() )) ( isGlobal || !aGlobIgnoAlgo->SupportSubmeshes() ))
{ {
// algo is hidden by a global algo // algo is hidden by a global algo