1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input

This commit is contained in:
kgv 2016-07-29 12:45:41 +03:00 committed by bugmaster
parent 990ab183dd
commit 30c1ef75af
2 changed files with 1 additions and 2 deletions

View File

@ -175,7 +175,7 @@ inline void Graphic3d_ArrayOfPrimitives::SetVertexColor (const Standard_Integer
{ {
Graphic3d_Vec4ub aColor (Standard_Byte(theR * 255.0), Graphic3d_Vec4ub aColor (Standard_Byte(theR * 255.0),
Standard_Byte(theG * 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)); SetVertexColor (theIndex, *reinterpret_cast<Standard_Integer*>(&aColor));
} }
myAttribs->NbElements = Max (theIndex, myAttribs->NbElements); myAttribs->NbElements = Max (theIndex, myAttribs->NbElements);

View File

@ -8,7 +8,6 @@ mkface s ss
incmesh s 0.01 incmesh s 0.01
# draw sphere # draw sphere
vcaps -ffp 1
vinit View1 vinit View1
vclear vclear
vsetdispmode 1 vsetdispmode 1