From 5c6196c4cc0118faebd63e44d5ad93a0e92b8f48 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 2 Dec 2014 17:26:30 +0300 Subject: [PATCH] Bug fixes for the Placement feature --- src/GeomAlgoAPI/GeomAlgoAPI_Placement.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Placement.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Placement.cpp index 6a378adde..b21ecc64d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Placement.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Placement.cpp @@ -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 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); } -- 2.39.2