From 33dea8badc9849a26bb868f2eee98f6f0946ddae Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 17 Jun 2013 12:49:23 +0000 Subject: [PATCH] 0021684: EDF 2221 : Display the arguments and the name of the operations In GetShapesOnShapeAsCompound(), store creation parameters using GEOMImpl_IShapes --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 0f91f4b5e..267e6e316 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -33,7 +33,6 @@ #include "GEOMImpl_VectorDriver.hxx" #include "GEOMImpl_ShapeDriver.hxx" -#include "GEOMImpl_CopyDriver.hxx" #include "GEOMImpl_GlueDriver.hxx" #include "GEOMImpl_IVector.hxx" @@ -2621,6 +2620,15 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::GetShapesOnShapeAsCompound aRes->AddFunction(GEOMImpl_ShapeDriver::GetID(), SHAPES_ON_SHAPE); aFunction->SetValue(aCompound); + aSeq->Clear(); + aSeq->Append( theCheckShape->GetLastFunction() ); + aSeq->Append( theShape->GetLastFunction() ); + + GEOMImpl_IShapes aCI( aFunction ); + aCI.SetShapes( aSeq ); + aCI.SetSubShapeType( theShapeType ); + aCI.SetTolerance( theState ); + GEOM::TPythonDump(aFunction) << aRes << " = geompy.GetShapesOnShapeAsCompound(" << theCheckShape << ", " -- 2.39.2