From: rnv Date: Fri, 16 Dec 2016 13:46:49 +0000 (+0300) Subject: Fix for the issue "53821: Visualization of mesh". X-Git-Tag: V8_3_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d2c9aaf03a346f40d9cffa9a3e7c3f820bda8295;p=modules%2Fsmesh.git Fix for the issue "53821: Visualization of mesh". --- diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 072b48175..752957abd 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -54,6 +54,7 @@ #include #include #include +#include #include // SALOME KERNEL includes @@ -95,6 +96,7 @@ // VTK includes #include +#include // STL includes #include @@ -1008,6 +1010,11 @@ void SMESHGUI_BaseComputeOp::computeMesh() Handle(SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject ( (*anIter).second->GetID().c_str(), "SMESH", (*anIter).second->GetName().c_str() ); SMESH::Update(anIO, toDisplay); + if( SVTK_ViewWindow* vtkWnd = SMESH::GetVtkViewWindow(SMESH::GetActiveWindow() ) ) { + if( vtkWnd->getRenderer() ){ + vtkWnd->getRenderer()->ResetCameraClippingRange(); + } + } if ( limitExceeded && !aMesh->_is_nil() ) {