From 45dda87ca8c4a38d8958fbf47c34627fe0397801 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 24 May 2005 10:48:15 +0000 Subject: [PATCH] use Visu_PipeLine::IsPlanarInput() --- src/VISUGUI/VisuGUI_Plot3DDlg.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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 ); -- 2.39.2