mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
Fix for the bug IPAL22854: preview is wrong for Create a new mesh
This commit is contained in:
parent
fcf879a78b
commit
2633709b28
@ -73,6 +73,11 @@ SMESHGUI_MeshEditPreview::SMESHGUI_MeshEditPreview(SVTK_ViewWindow* theViewWindo
|
|||||||
myPreviewActor->VisibilityOn();
|
myPreviewActor->VisibilityOn();
|
||||||
myPreviewActor->PickableOff();
|
myPreviewActor->PickableOff();
|
||||||
|
|
||||||
|
vtkFloatingPointType aFactor,aUnits;
|
||||||
|
myPreviewActor->SetResolveCoincidentTopology(true);
|
||||||
|
myPreviewActor->GetPolygonOffsetParameters(aFactor,aUnits);
|
||||||
|
myPreviewActor->SetPolygonOffsetParameters(aFactor,0.2*aUnits);
|
||||||
|
|
||||||
vtkFloatingPointType anRGB[3];
|
vtkFloatingPointType anRGB[3];
|
||||||
SMESH::GetColor( "SMESH", "selection_element_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) );
|
SMESH::GetColor( "SMESH", "selection_element_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) );
|
||||||
SetColor( anRGB[0], anRGB[1], anRGB[2] );
|
SetColor( anRGB[0], anRGB[1], anRGB[2] );
|
||||||
|
Loading…
Reference in New Issue
Block a user