Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7d720e
)
Fix for the issue "53821: Visualization of mesh".
author
rnv
<rnv@opencascade.com>
Fri, 16 Dec 2016 13:46:49 +0000
(16:46 +0300)
committer
rnv
<rnv@opencascade.com>
Fri, 16 Dec 2016 13:47:12 +0000
(16:47 +0300)
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
index 072b481752a647c102876e2dcfde1d6e226e7315..752957abd129c7d6a7e8e2faea9a5858c2a10615 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
@@
-54,6
+54,7
@@
#include <SUIT_Session.h>
#include <SVTK_ViewModel.h>
#include <SVTK_ViewWindow.h>
#include <SUIT_Session.h>
#include <SVTK_ViewModel.h>
#include <SVTK_ViewWindow.h>
+#include <SVTK_Renderer.h>
#include <SalomeApp_Application.h>
// SALOME KERNEL includes
#include <SalomeApp_Application.h>
// SALOME KERNEL includes
@@
-95,6
+96,7
@@
// VTK includes
#include <vtkProperty.h>
// VTK includes
#include <vtkProperty.h>
+#include <vtkRenderer.h>
// STL includes
#include <vector>
// STL includes
#include <vector>
@@
-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);
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() )
{
if ( limitExceeded && !aMesh->_is_nil() )
{