From: tiv Date: Fri, 17 May 2019 09:01:01 +0000 (+0300) Subject: 0030716: Visualization - Set polygon offset units property to 1.0 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4ae9b4b7cd1035f09cc19209540d229f1af89899;p=occt-copy.git 0030716: Visualization - Set polygon offset units property to 1.0 The default value of the Units property of the Graphic3d_PolygonOffset class is changed to 1.0f (instead of 0.0f used previously). (cherry picked from commit 9e6c2ff8600ac74b8ea2c87bfa0d37df1b18f546) (cherry picked from commit 658c8e06d8f5446ad22e18e4aa32d669cde1af6b) --- diff --git a/src/Graphic3d/Graphic3d_PolygonOffset.hxx b/src/Graphic3d/Graphic3d_PolygonOffset.hxx index 74c9ed1618..91c774c33a 100644 --- a/src/Graphic3d/Graphic3d_PolygonOffset.hxx +++ b/src/Graphic3d/Graphic3d_PolygonOffset.hxx @@ -24,7 +24,7 @@ struct Graphic3d_PolygonOffset Standard_ShortReal Units; //! Empty constructor. - Graphic3d_PolygonOffset() : Mode(Aspect_POM_Fill), Factor (1.0f), Units (0.0f) {} + Graphic3d_PolygonOffset() : Mode(Aspect_POM_Fill), Factor (1.0f), Units (1.0f) {} }; #endif // _Graphic3d_PolygonOffset_HeaderFile