Fix invalid Python dump generated by GetShapesOnBoxIDs(), GetShapesOnShapeIDs(), GetSameIDs() functions

This commit is contained in:
vsr 2012-12-26 13:47:25 +00:00
parent b8190086a5
commit 722850fe59

View File

@ -2302,7 +2302,7 @@ Handle(TColStd_HSequenceOfInteger)
Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShape,theBox)->GetLastFunction(); Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShape,theBox)->GetLastFunction();
// Make a Python command // Make a Python command
GEOM::TPythonDump(aFunction) GEOM::TPythonDump(aFunction, /*append=*/true)
<< "listShapesOnBoxIDs = geompy.GetShapesOnBoxIDs(" << "listShapesOnBoxIDs = geompy.GetShapesOnBoxIDs("
<< theBox << ", " << theBox << ", "
<< theShape << ", " << theShape << ", "
@ -2475,7 +2475,7 @@ Handle(TColStd_HSequenceOfInteger)
GEOM::GetCreatedLast(theShape,theCheckShape)->GetLastFunction(); GEOM::GetCreatedLast(theShape,theCheckShape)->GetLastFunction();
// Make a Python command // Make a Python command
GEOM::TPythonDump(aFunction) GEOM::TPythonDump(aFunction, /*append=*/true)
<< "listShapesOnBoxIDs = geompy.GetShapesOnShapeIDs(" << "listShapesOnBoxIDs = geompy.GetShapesOnShapeIDs("
<< theCheckShape << ", " << theCheckShape << ", "
<< theShape << ", " << theShape << ", "
@ -4671,7 +4671,7 @@ Handle(TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations::GetSameIDs
Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShapeWhere,theShapeWhat)->GetLastFunction(); Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShapeWhere,theShapeWhat)->GetLastFunction();
// Make a Python command // Make a Python command
GEOM::TPythonDump(aFunction) GEOM::TPythonDump(aFunction, /*append=*/true)
<< "listSameIDs = geompy.GetSameIDs(" << "listSameIDs = geompy.GetSameIDs("
<< theShapeWhere << ", " << theShapeWhere << ", "
<< theShapeWhat << ")"; << theShapeWhat << ")";