#include <TopoDS_Shape.hxx>
#include <TopoDS_Shell.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Shell.hxx>
#include <TopExp_Explorer.hxx>
shapeDim = (shapeDim < 2) ? 2 : shapeDim;
TopoDS_Shape aShape;
if (GEOMBase::GetShape(aGeomVar, aShape)) {
shapeDim = (shapeDim < 2) ? 2 : shapeDim;
TopoDS_Shape aShape;
if (GEOMBase::GetShape(aGeomVar, aShape)) {
//shapeDim = 3; // Bug 0016155: EDF PAL 447: If the shape is a Shell, disable 3D tab
shapeDim = (shapeDim < 2) ? 2 : shapeDim;
for (; exp.More() && shapeDim == 2; exp.Next()) {
//shapeDim = 3; // Bug 0016155: EDF PAL 447: If the shape is a Shell, disable 3D tab
shapeDim = (shapeDim < 2) ? 2 : shapeDim;
for (; exp.More() && shapeDim == 2; exp.Next()) {
// a global algorithm that does not support submeshes
if ( char* algoName = isSubmeshIgnored() ) {
SUIT_MessageBox::warning( myDlg, tr( "SMESH_ERROR" ),
// a global algorithm that does not support submeshes
if ( char* algoName = isSubmeshIgnored() ) {
SUIT_MessageBox::warning( myDlg, tr( "SMESH_ERROR" ),
CORBA::string_free( algoName );
myDlg->selectObject( "", SMESHGUI_MeshDlg::Mesh, "" );
selectObject( _PTR(SObject)() );
CORBA::string_free( algoName );
myDlg->selectObject( "", SMESHGUI_MeshDlg::Mesh, "" );
selectObject( _PTR(SObject)() );