From: eap Date: Thu, 3 Nov 2011 14:07:18 +0000 (+0000) Subject: 0021014]: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups X-Git-Tag: V6_4_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2fb8ce8c745833815777d821372d9b145160423e;p=modules%2Fsmesh.git 0021014]: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups Set a good filter name in groupOnFilter.SetFilter( filter0x628fc30 ) --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index fd59f5c86..2d5ee24f1 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -991,6 +991,9 @@ void _pyMesh::Process( const Handle(_pyCommand)& theCommand ) else if ( method == "CreateGroupFromFilter" ) // --> GroupOnFilter() { theCommand->SetMethod( "GroupOnFilter" ); + Handle(_pyGroup) group = new _pyGroup( theCommand ); + theGen->AddObject( group ); + // GroupOnFilter(typ, name, aFilter0x4743dc0 -> aFilter_1) _pyID filterID = theCommand->GetArg(3); Handle(_pyObject) filter = theGen->FindObject( filterID ); @@ -1294,7 +1297,8 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand) "SewBorderToSide","SewSideElements","ChangeElemNodes","GetLastCreatedNodes", "GetLastCreatedElems", "MirrorMakeMesh","MirrorObjectMakeMesh","TranslateMakeMesh", - "TranslateObjectMakeMesh","RotateMakeMesh","RotateObjectMakeMesh","MakeBoundaryMesh" + "TranslateObjectMakeMesh","RotateMakeMesh","RotateObjectMakeMesh","MakeBoundaryMesh", + "MakeBoundaryElements" ,"" }; // <- mark of the end sameMethods.Insert( names ); } @@ -2830,6 +2834,14 @@ void _pyGroup::Process( const Handle(_pyCommand)& theCommand) // set new name of a filter filter->Process( makeGroupCmd ); } + else if ( theCommand->GetMethod() == "SetFilter" ) + { + // set new name of a filter + _pyID filterID = theCommand->GetArg(1); + Handle(_pyObject) filter = theGen->FindObject( filterID ); + if ( !filter.IsNull() ) + filter->Process( theCommand ); + } } //================================================================================