mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
Fix for '54311: Ugly representation in the VTK Viewer after creation of the ParaView Viewer' issue.
This commit is contained in:
parent
291fbe554b
commit
7b117d9ccb
@ -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,8 +95,8 @@ 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();
|
||||||
myMapper->SetColorModeToMapScalars();
|
myMapper->SetColorModeToMapScalars();
|
||||||
|
Loading…
Reference in New Issue
Block a user