From: nds Date: Thu, 26 Feb 2015 13:50:18 +0000 (+0300) Subject: A correction to do not create excessive coincidence constraint X-Git-Tag: V_1.1.0~165 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab01eb291027ab15024bc17a365b65843f0563e7;p=modules%2Fshaper.git A correction to do not create excessive coincidence constraint --- diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index e32410baf..d77f86d1e 100644 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -361,6 +361,8 @@ void PartSet_Tools::setConstraints(CompositeFeaturePtr theSketch, FeaturePtr the new GeomAPI_Pnt2d(theClickedX, theClickedY)); for (; anIt != aLast; anIt++) { FeaturePtr aFeature = std::dynamic_pointer_cast(*anIt); + if (theFeature == aFeature) + continue; // find the given point in the feature attributes anAttiributes = aFeature->data()->attributes(GeomDataAPI_Point2D::type()); std::list >::const_iterator anIt = anAttiributes.begin(),