]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL12113: Can't visualize an edge in shading mode in OCC view. A patch by Sergey...
authorjfa <jfa@opencascade.com>
Fri, 14 Apr 2006 07:27:39 +0000 (07:27 +0000)
committerjfa <jfa@opencascade.com>
Fri, 14 Apr 2006 07:27:39 +0000 (07:27 +0000)
src/OBJECT/GEOM_AISShape.cxx
src/OBJECT/GEOM_AISShape.jxx

index eb2b741d9777ab7b5fbdb5a3b1a7d9f760e2271c..5c92b5de391c59c878e37ed7488550b489a3d934 100644 (file)
@@ -192,7 +192,9 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent
       //a4bis->SetInteriorColor(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;
     }
   }
index 8f66299fd0189184a4e39657e9e408fb118f57ec..c3d2a67e95abbb26d758dcf1b078a70005e2ae79 100644 (file)
@@ -38,4 +38,4 @@
 #endif
 #ifndef _Prs3d_Presentation_HeaderFile
 #include <Prs3d_Presentation.hxx>
-#endif
\ No newline at end of file
+#endif