From: kgv Date: Fri, 29 Jul 2016 09:45:41 +0000 (+0300) Subject: 0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque... X-Git-Tag: V7_1_0_beta~230 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=30c1ef75af0b699bff9c14316f80d7b0482b5547;p=occt.git 0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input --- diff --git a/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx b/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx index 54af290516..4661b9bd99 100644 --- a/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx +++ b/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx @@ -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(&aColor)); } myAttribs->NbElements = Max (theIndex, myAttribs->NbElements); diff --git a/tests/v3d/point_cloud/sphere b/tests/v3d/point_cloud/sphere index d99d07f14e..70dd27a1e3 100644 --- a/tests/v3d/point_cloud/sphere +++ b/tests/v3d/point_cloud/sphere @@ -8,7 +8,6 @@ mkface s ss incmesh s 0.01 # draw sphere -vcaps -ffp 1 vinit View1 vclear vsetdispmode 1