From e9001a69d5592586d4aa58fb161d6de7c90aa9ed Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 6 Nov 2015 17:02:10 +0300 Subject: [PATCH] Increase selection area for points --- src/SketchPlugin/SketchPlugin_SketchEntity.h | 2 +- src/XGUI/XGUI_Displayer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_SketchEntity.h b/src/SketchPlugin/SketchPlugin_SketchEntity.h index a26ef9aa4..b56992b89 100644 --- a/src/SketchPlugin/SketchPlugin_SketchEntity.h +++ b/src/SketchPlugin/SketchPlugin_SketchEntity.h @@ -101,7 +101,7 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC else if (aShapeType == 7) { // otherwise this is a vertex // The width value do not have effect on the point presentation. // It is defined in order to extend selection area of the object. - thePrs->setWidth(13); + thePrs->setWidth(17); // thePrs->setPointMarker(1, 1.); // Set point as a '+' symbol } return isCustomized; diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index a191509e5..59e99f4c7 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -221,7 +221,7 @@ bool XGUI_Displayer::display(ObjectPtr theObject, AISObjectPtr theAIS, if(anAISIO->Width() > 1) { for(int aModeIdx = 0; aModeIdx < myActiveSelectionModes.length(); ++aModeIdx) { int aMode = myActiveSelectionModes.value(aModeIdx); - double aPrecision = (aMode == getSelectionMode(TopAbs_VERTEX))? 15 : + double aPrecision = (aMode == getSelectionMode(TopAbs_VERTEX))? 20 : (anAISIO->Width() + 2); aContext->SetSelectionSensitivity(anAISIO, aMode, aPrecision); } -- 2.39.2