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: case ShadingWithEdges:
{ {
shadingMode(aPresentationManager, aPrs, Shading); shadingMode(aPresentationManager, aPrs, Shading);
if( anIsColorField && myFieldDimension == 1 )
drawField( aPrs );
else {
myDrawer->SetFaceBoundaryDraw( Standard_True ); myDrawer->SetFaceBoundaryDraw( Standard_True );
Handle(Prs3d_LineAspect) aBoundaryAspect = Handle(Prs3d_LineAspect) aBoundaryAspect =
new Prs3d_LineAspect ( myEdgesInShadingColor, Aspect_TOL_SOLID, myOwnWidth ); new Prs3d_LineAspect ( myEdgesInShadingColor, Aspect_TOL_SOLID, myOwnWidth );
myDrawer->SetFaceBoundaryAspect (aBoundaryAspect); myDrawer->SetFaceBoundaryAspect (aBoundaryAspect);
}
break; break;
} }
case TexturedShape: case TexturedShape: