]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To simplify usage of the class
authorapo <apo@opencascade.com>
Fri, 16 Sep 2005 07:40:40 +0000 (07:40 +0000)
committerapo <apo@opencascade.com>
Fri, 16 Sep 2005 07:40:40 +0000 (07:40 +0000)
src/PIPELINE/VISU_ImplicitFunctionWidget.cxx

index b88cdad0dc41645f7c78d516ae9da2e611d55d1f..5d2130e5ca0262a0291fef55df0e79446b441b22 100644 (file)
@@ -1086,6 +1086,10 @@ void VISU_ImplicitFunctionWidget::PlaceWidget(float bds[6])
                              (bounds[3]-bounds[2])*(bounds[3]-bounds[2]) +
                              (bounds[5]-bounds[4])*(bounds[5]-bounds[4]));
 
+  this->SetOrigin((bounds[1]+bounds[0])/2.0,
+                 (bounds[3]+bounds[2])/2.0,
+                 (bounds[5]+bounds[4])/2.0);
+
   static float DIST_COEFF = 0.025;
   SetDistance(this->InitialLength*DIST_COEFF);