]> OCCT Git - occt-copy.git/commitdiff
0030716: Visualization - Set polygon offset units property to 1.0
authortiv <tiv@opencascade.com>
Fri, 17 May 2019 09:01:01 +0000 (12:01 +0300)
committernds <nds@opencascade.com>
Thu, 6 Jun 2019 05:05:49 +0000 (08:05 +0300)
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)

src/Graphic3d/Graphic3d_PolygonOffset.hxx

index 74c9ed161860fdc421adf9607cd3c946012b74af..91c774c33a1261a2d4bf47f07ca8f0428af88e78 100644 (file)
@@ -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