I have an AIS_InteractiveContext. In this context , I have an AIS_Shape.
I open a local context in face selection mode.
I want in c++ add a face from my object to the current selected list.
How to do that ? I have seen the function :
AIS_InteractiveContext::AddOrRemoveSelected ( me:mutable ; aShape:Shape from TopoDS ; updateviewer : Boolean from Standard=Standard_True);
---Purpose: No right to Add a selected Shape (Internal Management of shape Selection).
-- A Previous selected shape may only be removed.
This function seems to be what I need , but we have no right to use it for Add , just for remove ( but why the name AddOrRemove if we cannot use add `? :-) ).
As somebody an idea ?