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:
parent
990ab183dd
commit
30c1ef75af
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user