From: eap Date: Tue, 24 May 2005 10:48:15 +0000 (+0000) Subject: use Visu_PipeLine::IsPlanarInput() X-Git-Tag: V2_2_0_VISU_improvement_2005-05-27~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=45dda87ca8c4a38d8958fbf47c34627fe0397801;p=modules%2Fvisu.git use Visu_PipeLine::IsPlanarInput() --- diff --git a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx index 61172ece..61a3df73 100644 --- a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx +++ b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx @@ -36,16 +36,11 @@ #include "VTKViewer_ViewFrame.h" #include "VTKViewer_RenderWindow.h" -#include - #include #include #include -#include #include -#include -#include #include #include #include @@ -439,12 +434,7 @@ void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs) // disable cutting plane controls if the mesh is planar - vtkDataSet* unstrGrid = thePrs->GetPL()->GetInput(); - float aBounds[6]; - unstrGrid->GetBounds( aBounds ); // xmin,xmax, ymin,ymax, zmin,zmax - if (fabs( aBounds[0] - aBounds[1] ) <= FLT_MIN || - fabs( aBounds[2] - aBounds[3] ) <= FLT_MIN || - fabs( aBounds[4] - aBounds[5] ) <= FLT_MIN ) + if ( thePrs->GetPL()->IsPlanarInput() ) { GBOrientation->setEnabled( false ); Rot1 ->setEnabled( false );