X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchPlugin%2FSketchPlugin_Fillet.cpp;h=36e6714ab563d594961690f23d02bb054de1eeac;hb=047a6c0106078a9953f72510f4e204313f2bcf72;hp=ad923c5844e01554550a45c39c2931328eeecd11;hpb=1803da706614befff7cacbe408c69ea14d71a8bb;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Fillet.cpp b/src/SketchPlugin/SketchPlugin_Fillet.cpp index ad923c584..36e6714ab 100644 --- a/src/SketchPlugin/SketchPlugin_Fillet.cpp +++ b/src/SketchPlugin/SketchPlugin_Fillet.cpp @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: SketchPlugin_Fillet.cpp -// Created: 19 Mar 2015 -// Author: Artem ZHIDKOV +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #include "SketchPlugin_Fillet.h" @@ -85,6 +99,9 @@ void SketchPlugin_Fillet::execute() if (isUpdateFlushed) Events_Loop::loop()->setFlushed(anUpdateEvent, false); + // set flag here to avoid building Fillet presentation if "Redisplay" event appears + myFilletCreated = true; + // Calculate Fillet parameters if does not yet if (!myBaseFeatures[0] || !myBaseFeatures[1]) calculateFilletParameters(); @@ -179,8 +196,6 @@ void SketchPlugin_Fillet::execute() if(isUpdateFlushed) { Events_Loop::loop()->setFlushed(anUpdateEvent, true); } - - myFilletCreated = true; } AISObjectPtr SketchPlugin_Fillet::getAISObject(AISObjectPtr thePrevious) @@ -459,17 +474,19 @@ std::set getCoincides(const FeaturePtr& theConstraintCoincidence) SketchPlugin_Tools::findCoincidences(theConstraintCoincidence, SketchPlugin_ConstraintCoincidence::ENTITY_A(), - aCoincides); + aCoincides, + true); SketchPlugin_Tools::findCoincidences(theConstraintCoincidence, SketchPlugin_ConstraintCoincidence::ENTITY_B(), - aCoincides); + aCoincides, + true); // Remove points from set of coincides. std::set aNewSetOfCoincides; for(std::set::iterator anIt = aCoincides.begin(); anIt != aCoincides.end(); ++anIt) { std::shared_ptr aSketchEntity = std::dynamic_pointer_cast(*anIt); - if(aSketchEntity.get() && aSketchEntity->isCopy()) { + if(aSketchEntity.get() && (aSketchEntity->isCopy() || aSketchEntity->isExternal())) { continue; } if((*anIt)->getKind() == SketchPlugin_Line::ID()) {