QStringList HYDROData_Region::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
{
QStringList aResList = dumpObjectCreation( theTreatedObjects );
- QString aRegionName = GetName();
+ QString aRegionName = GetObjPyName();
HYDROData_SequenceOfObjects aZones = GetZones();
HYDROData_SequenceOfObjects::Iterator anIter( aZones );
{
TopoDS_Shape aGroupEdge = anOriGroupDef.Shapes.Value( i );
- bool anIsFound = false;
- for ( int anIndex = 1; anIndex <= aMapOfSubShapes.Extent(); anIndex++ )
- {
- if ( aGroupEdge.IsPartner( aMapOfSubShapes.FindKey( anIndex ) ) )
- {
- anIsFound = true;
- break;
- }
- }
-
- if ( !anIsFound )
+ int aShapeIndex = aMapOfSubShapes.FindIndex( aGroupEdge );
+ if ( aShapeIndex <= 0 )
continue;
anOriGroupDef.Shapes.Remove( i );