]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bug fixes for the Placement feature
authorazv <azv@opencascade.com>
Tue, 2 Dec 2014 14:26:30 +0000 (17:26 +0300)
committerazv <azv@opencascade.com>
Tue, 2 Dec 2014 15:04:03 +0000 (18:04 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Placement.cpp

index 6a378adde2ce10d71514694ad793a12805661566..b21ecc64d3f86cabd7c1430b6619098b0f44897f 100644 (file)
@@ -57,17 +57,13 @@ void GeomAlgoAPI_Placement::build(
     setImpl(aBuilder);
     myDone = aBuilder->IsDone() == Standard_True;
     if (myDone) {
-      TopoDS_Shape aResult;
-      if(aBuilder->Shape().ShapeType() == TopAbs_COMPOUND) 
-        aResult = GeomAlgoAPI_DFLoader::refineResult(aBuilder->Shape());
-      else
-        aResult = aBuilder->Shape();
+      TopoDS_Shape aResult = aBuilder->Shape();
       // fill data map to keep correct orientation of sub-shapes 
       for (TopExp_Explorer Exp(aResult,TopAbs_FACE); Exp.More(); Exp.Next()) {
         std::shared_ptr<GeomAPI_Shape> aCurrentShape(new GeomAPI_Shape());
         aCurrentShape->setImpl(new TopoDS_Shape(Exp.Current()));
         myMap.bind(aCurrentShape, aCurrentShape);
-      }   
+      }
       myShape->setImpl(new TopoDS_Shape(aResult));
       myMkShape = new GeomAlgoAPI_MakeShape (aBuilder);
     }