PAL12113: Can't visualize an edge in shading mode in OCC view. A patch by Sergey ANIKIN.

This commit is contained in:
jfa 2006-04-14 07:27:39 +00:00
parent d9dd5e1f74
commit 1c7eb58dec
2 changed files with 4 additions and 2 deletions

View File

@ -192,7 +192,9 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent
//a4bis->SetInteriorColor(myShadingColor); //a4bis->SetInteriorColor(myShadingColor);
myDrawer->ShadingAspect()->SetColor(myShadingColor); myDrawer->ShadingAspect()->SetColor(myShadingColor);
StdPrs_ShadedShape::Add(aPrs,myshape,myDrawer); // PAL12113: AIS_Shape::Compute() works correctly with shapes containing no faces
//StdPrs_ShadedShape::Add(aPrs,myshape,myDrawer);
AIS_Shape::Compute(aPresentationManager, aPrs, aMode);
break; break;
} }
} }

View File

@ -38,4 +38,4 @@
#endif #endif
#ifndef _Prs3d_Presentation_HeaderFile #ifndef _Prs3d_Presentation_HeaderFile
#include <Prs3d_Presentation.hxx> #include <Prs3d_Presentation.hxx>
#endif #endif