Non-interactive selection

Hi !

I have a list of faces I want to be selected in my AIS_Context. How can I select them in a non-interactive way (ie not using Mouse and Select(), but from my code) ?

I've looked for a solution in samples and documentation, but did not find any clue...

Could someone help me please ?


Francois Lauzon's picture

Hi Eric,
you can use the AIS_InteractiveContext::AddOrRemoveCurrentObject(anAIS,Standard_True) method.


François Lauzon, Ing. Stag.
Software Development Coordinator
DBM Reflex Inc.
1620 boul. Dagenais ouest
Laval, Québec

Jawa's picture

Thanks for your hint.

I don't know how to use this function, but i'll try ;-)