mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 13:20:33 +05:00
OCC Viewer: correct edges color in wireframe mode
This commit is contained in:
parent
1c03b6900c
commit
150483de56
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user