Salome HOME
Fix for '54311: Ugly representation in the VTK Viewer after creation of the ParaView...
authorrnv <rnv@opencascade.com>
Thu, 14 Sep 2017 15:26:41 +0000 (18:26 +0300)
committerrnv <rnv@opencascade.com>
Thu, 14 Sep 2017 15:26:41 +0000 (18:26 +0300)
src/OBJECT/SMESH_DeviceActor.cxx

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