From: azv Date: Tue, 2 Dec 2014 14:26:30 +0000 (+0300) Subject: Bug fixes for the Placement feature X-Git-Tag: V_0.6.0^2~35^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c6196c4cc0118faebd63e44d5ad93a0e92b8f48;p=modules%2Fshaper.git Bug fixes for the Placement feature --- 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); }