From 7b117d9ccb34aa8e2f9eb7df88892bcd42f877d0 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 14 Sep 2017 18:26:41 +0300 Subject: [PATCH] Fix for '54311: Ugly representation in the VTK Viewer after creation of the ParaView Viewer' issue. --- src/OBJECT/SMESH_DeviceActor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OBJECT/SMESH_DeviceActor.cxx b/src/OBJECT/SMESH_DeviceActor.cxx index 2f6ccd06f..cfe6159a2 100644 --- a/src/OBJECT/SMESH_DeviceActor.cxx +++ b/src/OBJECT/SMESH_DeviceActor.cxx @@ -37,6 +37,7 @@ #include #include #include +#include // VTK Includes #include @@ -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(); -- 2.39.2