mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 11:50:32 +05:00
Issue 0021106: EDF 1691 SMESH: MEsh.Group(SubShape) fails on Shells
This commit is contained in:
parent
2de294b09a
commit
fc1ff1af4b
@ -856,12 +856,14 @@ void _pyMesh::Process( const Handle(_pyCommand)& theCommand )
|
|||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
else if ( method == "CreateGroupFromGEOM" ) {// (type, name, grp)
|
else if ( method == "CreateGroupFromGEOM" ) {// (type, name, grp)
|
||||||
_pyID grp = theCommand->GetArg( 3 );
|
_pyID grp = theCommand->GetArg( 3 );
|
||||||
if ( sameGroupType( grp, theCommand->GetArg( 1 )) ) { // --> Group(grp)
|
// VSR 24/12/2010. PAL21106: always use GroupOnGeom() function on dump
|
||||||
theCommand->SetMethod( "Group" );
|
// next if(){...} section is commented
|
||||||
theCommand->RemoveArgs();
|
//if ( sameGroupType( grp, theCommand->GetArg( 1 )) ) { // --> Group(grp)
|
||||||
theCommand->SetArg( 1, grp );
|
// theCommand->SetMethod( "Group" );
|
||||||
}
|
// theCommand->RemoveArgs();
|
||||||
else {
|
// theCommand->SetArg( 1, grp );
|
||||||
|
//}
|
||||||
|
//else {
|
||||||
_pyID type = theCommand->GetArg( 1 );
|
_pyID type = theCommand->GetArg( 1 );
|
||||||
_pyID name = theCommand->GetArg( 2 );
|
_pyID name = theCommand->GetArg( 2 );
|
||||||
theCommand->SetMethod( "GroupOnGeom" );
|
theCommand->SetMethod( "GroupOnGeom" );
|
||||||
@ -869,7 +871,7 @@ void _pyMesh::Process( const Handle(_pyCommand)& theCommand )
|
|||||||
theCommand->SetArg( 1, grp );
|
theCommand->SetArg( 1, grp );
|
||||||
theCommand->SetArg( 2, name );
|
theCommand->SetArg( 2, name );
|
||||||
theCommand->SetArg( 3, type );
|
theCommand->SetArg( 3, type );
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
else if ( method == "ExportToMED" || // ExportToMED() --> ExportMED()
|
else if ( method == "ExportToMED" || // ExportToMED() --> ExportMED()
|
||||||
|
Loading…
Reference in New Issue
Block a user