From: vsr Date: Fri, 16 Apr 2021 15:56:37 +0000 (+0300) Subject: Improve smesh GUI display() speed for viewing mesh - set this feature off by default X-Git-Tag: V9_7_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6bfaa65e4243ba43082a06697c7fb4431da57121;p=modules%2Fgui.git Improve smesh GUI display() speed for viewing mesh - set this feature off by default + ParaView 5.8 backward compatibility --- diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index c3ecaaca5..c85c84c22 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -182,6 +182,7 @@ VTKViewer_GeometryFilter return 0; } +#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9,0,0) if (delegateToVtk) { @@ -247,11 +248,14 @@ VTKViewer_GeometryFilter return this->vtkGeometryFilter::DataSetExecute(input, output, &exc); } else // !delegateToVtk +#endif { if (input->GetDataObjectType() == VTK_UNSTRUCTURED_GRID){ return this->UnstructuredGridExecute(input, output, outInfo); - }else + } + else { return Superclass::RequestData(request,inputVector,outputVector); + } } } diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.h b/src/VTKViewer/VTKViewer_GeometryFilter.h index 7c5836895..333814674 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.h +++ b/src/VTKViewer/VTKViewer_GeometryFilter.h @@ -35,7 +35,6 @@ #endif class vtkUnstructuredGrid; -struct vtkExcludedFaces; /*! \brief This class used same as vtkGeometryFilter. See documentation on VTK for more information. */ @@ -143,7 +142,7 @@ protected: bool triangulate = false); // Delegate VTKViewer_GeometryFilter::UnstructuredGridExecute to vtkGeometryFilter::UnstructuredGridExecute - bool delegateToVtk = true; + bool delegateToVtk = false; private: TVectorId myVTK2ObjIds;