]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 2f6ccd06f0044e7a26e03d7b5a87c80db50f26f9..cfe6159a2c0e7e4484c444878060473940d275f2 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();