mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-15 23:41:27 +05:00
0021014]: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
Set a good filter name in groupOnFilter.SetFilter( filter0x628fc30 )
This commit is contained in:
parent
f99b0ab887
commit
2fb8ce8c74
@ -991,6 +991,9 @@ void _pyMesh::Process( const Handle(_pyCommand)& theCommand )
|
|||||||
else if ( method == "CreateGroupFromFilter" ) // --> GroupOnFilter()
|
else if ( method == "CreateGroupFromFilter" ) // --> GroupOnFilter()
|
||||||
{
|
{
|
||||||
theCommand->SetMethod( "GroupOnFilter" );
|
theCommand->SetMethod( "GroupOnFilter" );
|
||||||
|
Handle(_pyGroup) group = new _pyGroup( theCommand );
|
||||||
|
theGen->AddObject( group );
|
||||||
|
|
||||||
// GroupOnFilter(typ, name, aFilter0x4743dc0 -> aFilter_1)
|
// GroupOnFilter(typ, name, aFilter0x4743dc0 -> aFilter_1)
|
||||||
_pyID filterID = theCommand->GetArg(3);
|
_pyID filterID = theCommand->GetArg(3);
|
||||||
Handle(_pyObject) filter = theGen->FindObject( filterID );
|
Handle(_pyObject) filter = theGen->FindObject( filterID );
|
||||||
@ -1294,7 +1297,8 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand)
|
|||||||
"SewBorderToSide","SewSideElements","ChangeElemNodes","GetLastCreatedNodes",
|
"SewBorderToSide","SewSideElements","ChangeElemNodes","GetLastCreatedNodes",
|
||||||
"GetLastCreatedElems",
|
"GetLastCreatedElems",
|
||||||
"MirrorMakeMesh","MirrorObjectMakeMesh","TranslateMakeMesh",
|
"MirrorMakeMesh","MirrorObjectMakeMesh","TranslateMakeMesh",
|
||||||
"TranslateObjectMakeMesh","RotateMakeMesh","RotateObjectMakeMesh","MakeBoundaryMesh"
|
"TranslateObjectMakeMesh","RotateMakeMesh","RotateObjectMakeMesh","MakeBoundaryMesh",
|
||||||
|
"MakeBoundaryElements"
|
||||||
,"" }; // <- mark of the end
|
,"" }; // <- mark of the end
|
||||||
sameMethods.Insert( names );
|
sameMethods.Insert( names );
|
||||||
}
|
}
|
||||||
@ -2830,6 +2834,14 @@ void _pyGroup::Process( const Handle(_pyCommand)& theCommand)
|
|||||||
// set new name of a filter
|
// set new name of a filter
|
||||||
filter->Process( makeGroupCmd );
|
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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user