From: rnv Date: Mon, 20 Feb 2012 12:23:05 +0000 (+0000) Subject: Fix for the "0020314: EDF 993 SMESH : Display bug with Volumes created by GHS3D"... X-Git-Tag: V6_main_20120221 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fdb4515b60f2d017fee91116fd1eb43568cb17d9;p=modules%2Fvisu.git Fix for the "0020314: EDF 993 SMESH : Display bug with Volumes created by GHS3D" issue (problem with displaying coincident 3D elements). --- 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);