X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Symmetry.cpp;h=2c3bd6521cd85c24a0cd5864debab0733dd86f89;hb=21a0c85b52bb93f94680e2342370764e6510e387;hp=e38bff2e8ed32fdcf20fe24b434d9e8d9e5fcf3f;hpb=5b6031b015602aa07f5a6fc668c13ac3faf7a8a9;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp b/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp index e38bff2e8..2c3bd6521 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp @@ -6,19 +6,22 @@ #include -#include -#include -#include +#include #include #include #include #include +#include -#include - +#include +#include +#include #include +#include +#include + //================================================================================================= FeaturesPlugin_Symmetry::FeaturesPlugin_Symmetry() { @@ -275,15 +278,15 @@ void FeaturesPlugin_Symmetry::performSymmetryByPlane() std::shared_ptr aPln; std::shared_ptr anObjRef = selection(FeaturesPlugin_Symmetry::PLANE_OBJECT_ID()); - if(anObjRef && anObjRef->value() && anObjRef->value()->isFace()) { + if (anObjRef && anObjRef->value() && anObjRef->value()->isFace()) { aPln = std::shared_ptr(new GeomAPI_Face(anObjRef->value()))->getPlane(); } else if (anObjRef && !anObjRef->value() && anObjRef->context() && - anObjRef->context()->shape() && anObjRef->context()->shape()->isEdge()) { + anObjRef->context()->shape() && anObjRef->context()->shape()->isFace()) { aPln = std::shared_ptr(new GeomAPI_Face(anObjRef->context()->shape()))->getPlane(); } - if(aPln) { + if (aPln) { aPlane = std::shared_ptr(new GeomAPI_Ax2(aPln->location(), aPln->direction())); }