Salome HOME
INT PAL 0052631: Line width property does not affect Shading with edges display mode
authormpa <mpa@opencascade.com>
Fri, 13 Mar 2015 12:55:24 +0000 (15:55 +0300)
committermpa <mpa@opencascade.com>
Fri, 13 Mar 2015 12:55:24 +0000 (15:55 +0300)
src/GEOMGUI/GEOM_Displayer.cxx
src/OBJECT/GEOM_AISShape.cxx

index cd54ac1479710e5df12fbcdc4bf53028ba3b00c3..24f2c017c844a72a0a8e06bd032914684c8f4f52 100644 (file)
@@ -839,11 +839,12 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
                             // display mode from properties
                             propMap.value( GEOM::propertyName( GEOM::DisplayMode ) ).toInt() );
 
-  // - face boundaries color
+  // - face boundaries color and line width
   if( AISShape->DisplayMode() == GEOM_AISShape::ShadingWithEdges )
     AISShape->Attributes()->SetFaceBoundaryDraw( Standard_True );
   anAspect = AISShape->Attributes()->FaceBoundaryAspect();
   anAspect->SetColor( SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::OutlineColor ) ).value<QColor>() ) );
+  anAspect->SetWidth( propMap.value( GEOM::propertyName( GEOM::LineWidth ) ).toInt() );
   AISShape->Attributes()->SetFaceBoundaryAspect( anAspect );
 
   // set display vectors flag
index 926c486a2169de84eb9cc50b8c722c3d928668aa..87838da18ed8b310f3cdbcf8126a46f3561c4a22 100644 (file)
@@ -257,12 +257,8 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent
       shadingMode(aPresentationManager, aPrs, Shading);
       if( anIsColorField && myFieldDimension == 1 )
         drawField( aPrs );
-      else {
+      else
         myDrawer->SetFaceBoundaryDraw( Standard_True );
-        Handle(Prs3d_LineAspect) aBoundaryAspect =
-          new Prs3d_LineAspect ( myEdgesInShadingColor, Aspect_TOL_SOLID, myOwnWidth );
-        myDrawer->SetFaceBoundaryAspect (aBoundaryAspect);
-      }
       break;
     }
     case TexturedShape: