From: mpa Date: Wed, 4 Mar 2015 14:07:57 +0000 (+0300) Subject: INT PAL 0052620: Creation of colored fields on edges is incorrect X-Git-Tag: V7_6_0a1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c818e008d41a77be737bd735548217b149688e4b;p=modules%2Fgeom.git INT PAL 0052620: Creation of colored fields on edges is incorrect --- diff --git a/src/OBJECT/GEOM_AISShape.cxx b/src/OBJECT/GEOM_AISShape.cxx index 961f9aae0..2e2fa2443 100644 --- a/src/OBJECT/GEOM_AISShape.cxx +++ b/src/OBJECT/GEOM_AISShape.cxx @@ -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: