]> Creatis software - creaMaracasVisu.git/commitdiff
#3560 ShowNPoints precision of the selected point
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 3 Jul 2024 13:20:46 +0000 (15:20 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 3 Jul 2024 13:20:46 +0000 (15:20 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx

index ee247b6819bd6d602baa9b9fc884f30d0d5adc89..a36b10836c740bfaffdc2b596f8e10c80bf5b1fa 100644 (file)
@@ -360,8 +360,11 @@ int ModelShowNPoints::IdInsidePoint()
        int id=-1;
        int i, size=(int)( lstPointsX.size() );
     double spc[3];
+//EED 2024-07-03
+//    double tmpRadio = mradio/3;
+//    double radio2=(tmpRadio+1)*(tmpRadio+1);
     double tmpRadio = mradio/3;
-    double radio2=(tmpRadio+1)*(tmpRadio+1);
+    double radio2=(tmpRadio+0.33)*(tmpRadio+0.33);
        if ( (mimage==NULL)  || (mReferencePoint.size()!=3) )
        {
                printf("WidgetShowNPoints::IdInsidePoint  image not set  or  ReferencePoint not set\n");