OCC Viewer: correct edges color in wireframe mode

This commit is contained in:
jfa 2020-04-17 16:02:27 +03:00
parent 1c03b6900c
commit 150483de56

View File

@ -831,10 +831,12 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
AISShape->Attributes()->SetLineAspect( anAspect ); AISShape->Attributes()->SetLineAspect( anAspect );
// - unfree boundaries color // - unfree boundaries color
anAspect = AISShape->Attributes()->UnFreeBoundaryAspect(); Handle(Prs3d_LineAspect) aUnFreeBoundaryAspect =
anAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() : 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>() ) ); SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::WireframeColor ) ).value<QColor>() ) );
AISShape->Attributes()->SetUnFreeBoundaryAspect( anAspect ); AISShape->Attributes()->SetUnFreeBoundaryAspect( aUnFreeBoundaryAspect );
// - free boundaries color // - free boundaries color
Handle(Prs3d_LineAspect) aFreeBoundaryAspect = Handle(Prs3d_LineAspect) aFreeBoundaryAspect =