From 0ab4dbdbf06ff04803d5af9e530dbf2a04901268 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 8 May 2018 14:32:49 +0300 Subject: [PATCH] 0023558: [CEA 2242] : Bad display of shared edges in wireframe mode --- src/GEOMGUI/GEOM_Displayer.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 6925d8d22..64943f741 100755 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -839,10 +839,12 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap AISShape->Attributes()->SetUnFreeBoundaryAspect( anAspect ); // - free boundaries color - anAspect = AISShape->Attributes()->FreeBoundaryAspect(); - anAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() : + Handle(Prs3d_LineAspect) aFreeBoundaryAspect = + new Prs3d_LineAspect (Quantity_NOC_RED, Aspect_TOL_SOLID, 1.0); + *aFreeBoundaryAspect->Aspect() = *AISShape->Attributes()->FreeBoundaryAspect()->Aspect(); + aFreeBoundaryAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() : SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::FreeBndColor ) ).value() ) ); - AISShape->Attributes()->SetFreeBoundaryAspect( anAspect ); + AISShape->Attributes()->SetFreeBoundaryAspect( aFreeBoundaryAspect ); // - standalone edges color anAspect = AISShape->Attributes()->WireAspect(); -- 2.39.2