Home
Reply
Visitor
Posts: 3
0

How to transform the color of hoops geometry segment Real-time?

Hello everyone:

 

I have an queston about transforn color of hoops geometry segment need all of your helps

out requiremwnt is when we move mouse pointer to an component, the component color is changed, when mouse pointer leave it, the color is recoveried.

 

the main code as below description:

 

HC_Open_Geometry(lKey);
 HC_Set_Color("red");
 HC_Close_Geometry();

 

m_pView->Update();

 

(lKey : this is the compoint key which mouse pointer above it).

 

when we use above code, the component color is not changed. but when we zoom the camera, the color is changed .

our question is:

How to transform the color of hoops geometry segment Real-time when mouse pointer on or leave it?