From: ana Date: Mon, 16 Jan 2012 15:14:07 +0000 (+0000) Subject: Fix for the bug IPAL22854: preview is wrong for Create a new mesh X-Git-Tag: V6_5_0a1~202 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2633709b2815696000c9d457a914680e1f8840d2;p=modules%2Fsmesh.git Fix for the bug IPAL22854: preview is wrong for Create a new mesh --- diff --git a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx index dad1047e1..85ba45195 100644 --- a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx @@ -73,6 +73,11 @@ SMESHGUI_MeshEditPreview::SMESHGUI_MeshEditPreview(SVTK_ViewWindow* theViewWindo myPreviewActor->VisibilityOn(); myPreviewActor->PickableOff(); + vtkFloatingPointType aFactor,aUnits; + myPreviewActor->SetResolveCoincidentTopology(true); + myPreviewActor->GetPolygonOffsetParameters(aFactor,aUnits); + myPreviewActor->SetPolygonOffsetParameters(aFactor,0.2*aUnits); + vtkFloatingPointType anRGB[3]; SMESH::GetColor( "SMESH", "selection_element_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) ); SetColor( anRGB[0], anRGB[1], anRGB[2] );