]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
OCC Viewer: correct edges color in wireframe mode
authorjfa <jfa@opencascade.com>
Fri, 17 Apr 2020 13:02:27 +0000 (16:02 +0300)
committerjfa <jfa@opencascade.com>
Fri, 17 Apr 2020 13:02:27 +0000 (16:02 +0300)
src/GEOMGUI/GEOM_Displayer.cxx

index 231e050c374debb7ec5dda597a756cc4a6ae4412..cdfc09293ddae8d633bf6a02bb786c9bf7d9680d 100644 (file)
@@ -831,10 +831,12 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
   AISShape->Attributes()->SetLineAspect( anAspect );
   
   // - unfree boundaries color
-  anAspect = AISShape->Attributes()->UnFreeBoundaryAspect();
-  anAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() : 
+  Handle(Prs3d_LineAspect) aUnFreeBoundaryAspect =
+    new Prs3d_LineAspect (Quantity_NOC_RED, Aspect_TOL_SOLID, 1.0);
+  *aUnFreeBoundaryAspect->Aspect() = *AISShape->Attributes()->UnFreeBoundaryAspect()->Aspect();
+  aUnFreeBoundaryAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() :
                       SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::WireframeColor ) ).value<QColor>() ) );
-  AISShape->Attributes()->SetUnFreeBoundaryAspect( anAspect );
+  AISShape->Attributes()->SetUnFreeBoundaryAspect( aUnFreeBoundaryAspect );
   
   // - free boundaries color
   Handle(Prs3d_LineAspect) aFreeBoundaryAspect =