]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023558: [CEA 2242] : Bad display of shared edges in wireframe mode vsr/23558
authorvsr <vsr@opencascade.com>
Tue, 8 May 2018 11:32:49 +0000 (14:32 +0300)
committervsr <vsr@opencascade.com>
Tue, 8 May 2018 11:32:49 +0000 (14:32 +0300)
src/GEOMGUI/GEOM_Displayer.cxx

index 6925d8d22f242750d14137c811a78aef4846b8ee..64943f7419a994cc91a348ce121e68841c66222a 100755 (executable)
@@ -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<QColor>() ) );
-  AISShape->Attributes()->SetFreeBoundaryAspect( anAspect );
+  AISShape->Attributes()->SetFreeBoundaryAspect( aFreeBoundaryAspect );
   
   // - standalone edges color
   anAspect = AISShape->Attributes()->WireAspect();