]> OCCT Git - occt.git/commitdiff
0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque...
authorkgv <kgv@opencascade.com>
Fri, 29 Jul 2016 09:45:41 +0000 (12:45 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 4 Aug 2016 08:20:12 +0000 (11:20 +0300)
src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx
tests/v3d/point_cloud/sphere

index 54af2905160463782ef0d1d19d82c71cf27e6545..4661b9bd99a4be5da0f70949fa2b0847b94fb4dd 100644 (file)
@@ -175,7 +175,7 @@ inline void Graphic3d_ArrayOfPrimitives::SetVertexColor (const Standard_Integer
   {
     Graphic3d_Vec4ub aColor (Standard_Byte(theR * 255.0),
                              Standard_Byte(theG * 255.0),
-                             Standard_Byte(theB * 255.0), 0);
+                             Standard_Byte(theB * 255.0), 255);
     SetVertexColor (theIndex, *reinterpret_cast<Standard_Integer*>(&aColor));
   }
   myAttribs->NbElements = Max (theIndex, myAttribs->NbElements);
index d99d07f14ecd868c1b8b82a2e5658a6651cc5398..70dd27a1e379b0400f00e6d27b8a4f5a7196b8a9 100644 (file)
@@ -8,7 +8,6 @@ mkface s ss
 incmesh s 0.01
 
 # draw sphere
-vcaps -ffp 1
 vinit View1
 vclear
 vsetdispmode 1