as far as i know the local context is deprecated and all of the functionality should be available in neutral point. I want to make it visible ,which TopoDS_Face object is under the mouse and be able to get the underlying TopoDS_Face object.
In local context i was able to achieve both things by:
- Opening a local context and setting ActivateStandardMode to TopAbs_Face
- Calling DetectedShape() on my interactive context
The both things are not possible withing a neutral point (the code makes a return when no local context is open).
The first thing (highlight functionality) i was able to achieve by calling Activate on my SelectionManager and setting it to TopAbs_Face. The only problem is that i need to do it to all AIS_Shapes, and not like in local context set it globally for all.
I can live with that (unless someone has better idea how to achieve the same thing)
The second thing i dont seem able to achieve. I do not know how to get the underlying TopoDS_Face object.
Any help or ideas?