From c818e008d41a77be737bd735548217b149688e4b Mon Sep 17 00:00:00 2001 From: mpa Date: Wed, 4 Mar 2015 17:07:57 +0300 Subject: [PATCH] INT PAL 0052620: Creation of colored fields on edges is incorrect --- src/OBJECT/GEOM_AISShape.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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: -- 2.39.2