Fix for '54311: Ugly representation in the VTK Viewer after creation of the ParaView Viewer' issue.

This commit is contained in:
rnv 2017-09-14 18:26:41 +03:00
parent 291fbe554b
commit 7b117d9ccb

View File

@ -37,6 +37,7 @@
#include <VTKViewer_Transform.h> #include <VTKViewer_Transform.h>
#include <VTKViewer_TransformFilter.h> #include <VTKViewer_TransformFilter.h>
#include <VTKViewer_ExtractUnstructuredGrid.h> #include <VTKViewer_ExtractUnstructuredGrid.h>
#include <VTKViewer_Actor.h>
// VTK Includes // VTK Includes
#include <vtkObjectFactory.h> #include <vtkObjectFactory.h>
@ -94,7 +95,7 @@ SMESH_DeviceActor
myMapper = VTKViewer_PolyDataMapper::New(); myMapper = VTKViewer_PolyDataMapper::New();
myPlaneCollection = vtkPlaneCollection::New(); myPlaneCollection = vtkPlaneCollection::New();
vtkMapper::GetResolveCoincidentTopologyPolygonOffsetParameters(myPolygonOffsetFactor, VTKViewer_Actor::GetDefaultPolygonOffsetParameters(myPolygonOffsetFactor,
myPolygonOffsetUnits); myPolygonOffsetUnits);
myMapper->UseLookupTableScalarRangeOn(); myMapper->UseLookupTableScalarRangeOn();