+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: GeomAlgoAPI_Placement.cpp
// Created: 2 Dec 2014
// Author: Artem ZHIDKOV
#include <GProp_GProps.hxx>
#include <BRepGProp.hxx>
#include <Precision.hxx>
-
-
+#define DEB_PLACEMENT 1
GeomAlgoAPI_Placement::GeomAlgoAPI_Placement(
std::shared_ptr<GeomAPI_Shape> theAttractiveFace,
std::shared_ptr<GeomAPI_Pln> theSourcePlane,
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);
- }
+ }
+#ifdef DEB_PLACEMENT
+ int aNum = myMap.size();
+ cout << "MAP of Oriented shapes =" << aNum <<endl;
+
+#endif
+
myShape->setImpl(new TopoDS_Shape(aResult));
myMkShape = new GeomAlgoAPI_MakeShape (aBuilder);
}