de-hilight and object?

Hi guys,

I have hilighted an object, and I want to try get ride of the hikight. what should I do? Should I change the color of the object and redisplay it?
if so, I have tried it. and it wasn't working.

Please help me...


khwf's picture

Hallo howard,

Try to use the following code with myAISC as your interactive context:

for (myAISC->InitSelected(); myAISC->MoreSelected(); myAISC->NextSelected()) // Get all Selections
{ Handle_AIS_InteractiveObject Current = myAISC->Current();
myAISC->AddOrRemoveSelected(Current, Standard_False); // Switch the selected state

perhaps you will also have to update the viewer context

good luck