INT PAL 0052620: Creation of colored fields on edges is incorrect

This commit is contained in:
mpa 2015-03-04 17:07:57 +03:00
parent 4310bcdf3d
commit c818e008d4

View 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: