mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 11:30:37 +05:00
Fix for the issue "53821: Visualization of mesh".
This commit is contained in:
parent
c7d720eb8a
commit
d2c9aaf03a
@ -54,6 +54,7 @@
|
|||||||
#include <SUIT_Session.h>
|
#include <SUIT_Session.h>
|
||||||
#include <SVTK_ViewModel.h>
|
#include <SVTK_ViewModel.h>
|
||||||
#include <SVTK_ViewWindow.h>
|
#include <SVTK_ViewWindow.h>
|
||||||
|
#include <SVTK_Renderer.h>
|
||||||
#include <SalomeApp_Application.h>
|
#include <SalomeApp_Application.h>
|
||||||
|
|
||||||
// SALOME KERNEL includes
|
// SALOME KERNEL includes
|
||||||
@ -95,6 +96,7 @@
|
|||||||
|
|
||||||
// VTK includes
|
// VTK includes
|
||||||
#include <vtkProperty.h>
|
#include <vtkProperty.h>
|
||||||
|
#include <vtkRenderer.h>
|
||||||
|
|
||||||
// STL includes
|
// STL includes
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -1008,6 +1010,11 @@ void SMESHGUI_BaseComputeOp::computeMesh()
|
|||||||
Handle(SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject
|
Handle(SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject
|
||||||
( (*anIter).second->GetID().c_str(), "SMESH", (*anIter).second->GetName().c_str() );
|
( (*anIter).second->GetID().c_str(), "SMESH", (*anIter).second->GetName().c_str() );
|
||||||
SMESH::Update(anIO, toDisplay);
|
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() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user