]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 0052620: Creation of colored fields on edges is incorrect
authormpa <mpa@opencascade.com>
Wed, 4 Mar 2015 14:07:57 +0000 (17:07 +0300)
committermpa <mpa@opencascade.com>
Wed, 4 Mar 2015 14:07:57 +0000 (17:07 +0300)
src/OBJECT/GEOM_AISShape.cxx

index 961f9aae0599f817de08b6bf641f1d26021e9c8b..2e2fa2443c5e369c1e27aa9e19d3b002058f6cf2 100644 (file)
@@ -253,10 +253,14 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent
     case ShadingWithEdges:
     {
       shadingMode(aPresentationManager, aPrs, Shading);
-      myDrawer->SetFaceBoundaryDraw( Standard_True );
-      Handle(Prs3d_LineAspect) aBoundaryAspect =
-        new Prs3d_LineAspect ( myEdgesInShadingColor, Aspect_TOL_SOLID, myOwnWidth );
-      myDrawer->SetFaceBoundaryAspect (aBoundaryAspect);
+      if( anIsColorField && myFieldDimension == 1 )
+        drawField( aPrs );
+      else {
+        myDrawer->SetFaceBoundaryDraw( Standard_True );
+        Handle(Prs3d_LineAspect) aBoundaryAspect =
+          new Prs3d_LineAspect ( myEdgesInShadingColor, Aspect_TOL_SOLID, myOwnWidth );
+        myDrawer->SetFaceBoundaryAspect (aBoundaryAspect);
+      }
       break;
     }
     case TexturedShape: