From 30c1ef75af0b699bff9c14316f80d7b0482b5547 Mon Sep 17 00:00:00 2001 From: kgv Date: Fri, 29 Jul 2016 12:45:41 +0300 Subject: [PATCH] 0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input --- src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx | 2 +- tests/v3d/point_cloud/sphere | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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