From fdb4515b60f2d017fee91116fd1eb43568cb17d9 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 20 Feb 2012 12:23:05 +0000 Subject: [PATCH] Fix for the "0020314: EDF 993 SMESH : Display bug with Volumes created by GHS3D" issue (problem with displaying coincident 3D elements). --- src/OBJECT/VISU_MeshAct.cxx | 2 ++ src/OBJECT/VISU_ScalarMapAct.cxx | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/OBJECT/VISU_MeshAct.cxx b/src/OBJECT/VISU_MeshAct.cxx index 2e26fcaf..4d4bb910 100644 --- a/src/OBJECT/VISU_MeshAct.cxx +++ b/src/OBJECT/VISU_MeshAct.cxx @@ -56,10 +56,12 @@ VISU_MeshAct mySurfaceActor = SVTK_DeviceActor::New(); mySurfaceActor->SetRepresentation(VTKViewer::Representation::Surface); mySurfaceActor->SetUserMatrix(m); + mySurfaceActor->SetCoincident3DAllowed(true); myEdgeActor = SVTK_DeviceActor::New(); myEdgeActor->SetRepresentation(VTKViewer::Representation::Wireframe); myEdgeActor->SetUserMatrix(m); + myEdgeActor->SetCoincident3DAllowed(true); myNodeActor = SVTK_DeviceActor::New(); myNodeActor->SetRepresentation(VTKViewer::Representation::Points); diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index c5334947..c3adfaaf 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -140,6 +140,8 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase SetPointSpriteMapper( aMapper ); + myGeomFilter->SetAppendCoincident3D(true); + aMapper->Delete(); myEventCallbackCommand->SetClientData( this ); @@ -236,12 +238,15 @@ VISU_ScalarMapAct mySurfaceActor->SetRepresentation(VTKViewer::Representation::Surface); mySurfaceActor->SetProperty(aProperty); mySurfaceActor->SetUserMatrix(aMatrix); + mySurfaceActor->SetCoincident3DAllowed(true); myEdgeActor = SVTK_DeviceActor::New(); myEdgeActor->SetRepresentation(VTKViewer::Representation::Wireframe); myEdgeActor->SetUserMatrix(aMatrix); myEdgeActor->GetProperty()->SetColor(255.,255.,255.); + myEdgeActor->SetCoincident3DAllowed(true); + myPointsActor = SVTK_DeviceActor::New(); myPointsActor->SetRepresentation(VTKViewer::Representation::Points); myPointsActor->SetProperty(aProperty); -- 2.39.2