So far I have created an AIS_InteractiveContext object and opened a local context in it with face-oriented selection mode.
Here is how i set the selection mode :
void set_selection_mode (int sel_mode)
AIS_ListIteratorOfListOfInteractive iobject (objects);
while (iobject.More ())
_ais_context->Display (iobject.Value (), _display_mode, sel_mode,true, true);
It works fine for the first call. But later when I want to set an edge-oriented selection mode(thus sel_mode == 2) I can select faces and edges, but I don't want them both.
I tried "_ais_context->UnsetSelectionMode (iobject.Value ())" in the loop, but it does not work.
Does someone have an idea?