From: Clarisse Genrault Date: Thu, 16 Feb 2017 14:52:54 +0000 (+0100) Subject: Debug : use plane for symmetry. X-Git-Tag: V_2.7.0~278 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41f9517e84ae934ce536718d4f48e26731c8430d;p=modules%2Fshaper.git Debug : use plane for symmetry. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp b/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp index b1b34237b..d254eeef7 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp @@ -18,6 +18,9 @@ #include #include +#include +#include + //================================================================================================= FeaturesPlugin_Symmetry::FeaturesPlugin_Symmetry() { @@ -274,15 +277,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())); }