Fix dump for RestoreGivenSubShapes command

This commit is contained in:
Gilles DAVID 2017-07-04 13:09:05 +02:00
parent 0cf86bb835
commit 125e77e0b6

View File

@ -1362,10 +1362,10 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapes(SALOMEDS::Study_ptr theStudy,
anObjFun->SetDescription( "" ); anObjFun->SetDescription( "" );
if ( j > 0 ) if ( j > 0 )
pd << ", "; pd << ", ";
pd << aGeomObj; pd << aGeomObj->GetName();
j++; j++;
} }
pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj << ", " << "["; pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj->GetName() << ", " << "[";
//i = 0; nb = theArgs.length(); j = 0; //i = 0; nb = theArgs.length(); j = 0;
i = 0; nb = anOutArgs->length(); j = 0; i = 0; nb = anOutArgs->length(); j = 0;
for ( ; i < nb; i++ ) for ( ; i < nb; i++ )
@ -1377,7 +1377,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapes(SALOMEDS::Study_ptr theStudy,
HANDLE_NAMESPACE(GEOM_BaseObject) aGeomObj = _impl->GetObject(anObj->GetStudyID(), anObj->GetEntry()); HANDLE_NAMESPACE(GEOM_BaseObject) aGeomObj = _impl->GetObject(anObj->GetStudyID(), anObj->GetEntry());
if ( j > 0 ) if ( j > 0 )
pd << ", "; pd << ", ";
pd << aGeomObj; pd << aGeomObj->GetName();
j++; j++;
} }
pd <<"]" << ", " <<"GEOM."; pd <<"]" << ", " <<"GEOM.";
@ -1908,10 +1908,10 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(SALOMEDS::Study_ptr theStu
anObjFun->SetDescription( "" ); anObjFun->SetDescription( "" );
if ( j > 0 ) if ( j > 0 )
pd << ", "; pd << ", ";
pd << aGeomObj; pd << aGeomObj->GetName();
j++; j++;
} }
pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj << ", " << "["; pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj->GetName() << ", " << "[";
i = 0; nb = theArgs.length(); j = 0; i = 0; nb = theArgs.length(); j = 0;
for ( ; i < nb; i++ ) for ( ; i < nb; i++ )
{ {
@ -1921,7 +1921,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(SALOMEDS::Study_ptr theStu
HANDLE_NAMESPACE(GEOM_BaseObject) aGeomObj = _impl->GetObject(anObj->GetStudyID(), anObj->GetEntry()); HANDLE_NAMESPACE(GEOM_BaseObject) aGeomObj = _impl->GetObject(anObj->GetStudyID(), anObj->GetEntry());
if ( j > 0 ) if ( j > 0 )
pd << ", "; pd << ", ";
pd << aGeomObj; pd << aGeomObj->GetName();
j++; j++;
} }
pd <<"]" << ", " <<"GEOM."; pd <<"]" << ", " <<"GEOM.";