From d2c9aaf03a346f40d9cffa9a3e7c3f820bda8295 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 16 Dec 2016 16:46:49 +0300 Subject: [PATCH] Fix for the issue "53821: Visualization of mesh". --- src/SMESHGUI/SMESHGUI_ComputeDlg.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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() ) { -- 2.30.2