bool byAverageNormal = ByAverageNormalCheck->isChecked();
int dim = (maxSelType == SMESH::FACE) ? 2 : 1;
- groups = meshEditor->ExtrusionByNormal( faces, stepSize, nbSteps, useInputElemsOnly,
- byAverageNormal, makeGroups, dim );
+ groups = meshEditor->ExtrusionByNormal( faces, stepSize, nbSteps, byAverageNormal,
+ useInputElemsOnly, makeGroups, dim );
}
else
{
SMESH::Update( actor->getIO(), actor->GetVisibility() );
if ( makeGroups )
mySMESHGUI->updateObjBrowser(true); // new groups may appear
- Init(false);
+
mySelectionMgr->clearSelected();
- SelectorWdg->Clear();
+ Init(false);
SMESHGUI::Modified();
}
bool byAverageNormal = ByAverageNormalCheck->isChecked();
int dim = (maxSelType == SMESH::FACE) ? 2 : 1;
- groups = meshEditor->ExtrusionByNormal( faces, stepSize, nbSteps, useInputElemsOnly,
- byAverageNormal, makeGroups, dim );
+ groups = meshEditor->ExtrusionByNormal( faces, stepSize, nbSteps, byAverageNormal,
+ useInputElemsOnly, makeGroups, dim );
}
else
{
if isinstance( Elements, list ):
if not Elements:
raise RuntimeError("Elements empty!")
+ if isinstance( Elements[0], Mesh ):
+ Elements = [ Elements[0].GetMesh() ]
if isinstance( Elements[0], int ):
Elements = self.GetIDSource( Elements, SMESH.ALL )
unRegister.set( Elements )