]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
[SALOME platform 0019868] Bad behaviour of display shading
authoreap <eap@opencascade.com>
Thu, 5 Jun 2008 09:01:59 +0000 (09:01 +0000)
committereap <eap@opencascade.com>
Thu, 5 Jun 2008 09:01:59 +0000 (09:01 +0000)
     set deviation angle of 10 degrees

src/GEOMGUI/GEOM_Displayer.cxx

index 79e6926fc6fcaedb9335bcd7ab678203fbf11dd6..55e318612da0f2c6115795cf93324ea0470eecc0 100644 (file)
@@ -637,6 +637,10 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
                anAspect = AISShape->Attributes()->WireAspect();
                anAspect->SetColor( aColor );
                AISShape->Attributes()->SetWireAspect( anAspect );
+
+                // bug [SALOME platform 0019868]
+                // Set deviation angle. Default one is 12 degrees (Prs3d_Drawer.cxx:18)
+                AISShape->SetOwnDeviationAngle( 10*PI/180 );
              }
          }