]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.cxx
#3537 Mesh_tool_ApplyDeformation optimization
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ViewShowNPoints.cxx
index b5ed682a8c1aafaf4da5d19d909f2657e11084ab..0bd5f745c259d60c79b38abded04c9dc2fd183ee 100644 (file)
@@ -26,10 +26,11 @@ void ViewShowNPoints::RefreshPoint(int id)
     GetModelShowNPoints()->GetIdPoint(id,&x,&y,&z);
     GetModelShowNPoints()->GetImage()->GetSpacing(spc);
     std::string label     = GetModelShowNPoints()->GetIdLabel(id);
-    double radio          = GetModelShowNPoints()->GetRadio()  * ratioRadio;
+    double radio          = GetModelShowNPoints()->GetRadio()  * ratioRadio ;
+    radio = radio /3;
     lstActorsSphere[id]->SetPosition( spc[0]*x , spc[1]*y , spc[2]*z );
     lstActorsSphere[id]->GetProperty()->SetOpacity( mopacity );
-    lstSourceSphere[id]->SetRadius( radio );
+    lstSourceSphere[id]->SetRadius( radio  );
     lstActorsSphere[id]->GetProperty()->SetColor( mcolour[0] , mcolour[1] , mcolour[2] );
 //EED 2017-01-01 Migration VTK7
 #if VTK_MAJOR_VERSION <= 5