From 41f9517e84ae934ce536718d4f48e26731c8430d Mon Sep 17 00:00:00 2001 From: Clarisse Genrault Date: Thu, 16 Feb 2017 15:52:54 +0100 Subject: [PATCH] Debug : use plane for symmetry. --- src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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())); } -- 2.39.2