Salome HOME
0021684: EDF 2221 : Display the arguments and the name of the operations
authoreap <eap@opencascade.com>
Mon, 17 Jun 2013 12:49:23 +0000 (12:49 +0000)
committereap <eap@opencascade.com>
Mon, 17 Jun 2013 12:49:23 +0000 (12:49 +0000)
In GetShapesOnShapeAsCompound(), store creation parameters using GEOMImpl_IShapes

src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 0f91f4b5e0844e9240b6da1a03ed4e3e78d6eaf7..267e6e3169a9269b32b113384d7cd12fc756db24 100644 (file)
@@ -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 << ", "