mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-07 10:34:17 +05:00
0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Use aGlobIgnoAlgo->NeedLowerHyps( dim ) in checkConformIgnoredAlgos()
This commit is contained in:
parent
3a62786158
commit
9b0f684048
@ -591,12 +591,13 @@ static bool checkConformIgnoredAlgos(SMESH_Mesh& aMesh,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
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
|
||||||
theErrors.push_back( SMESH_Gen::TAlgoStateError() );
|
theErrors.push_back( SMESH_Gen::TAlgoStateError() );
|
||||||
|
Loading…
Reference in New Issue
Block a user