Setting custom SelectMgr_BaseIntersector for Selection.

I want to select objects with some tolerance value in world coordinates.
Currently OCC support pixel based tolerance value using SelectMgr_SelectingVolumeManager::SetPixelTolerance().
But its works based on zoom value.

Is there any way to set own SelectMgr_BaseIntersector object to SelectMgr_SelectionManager ?
I would like to subclass SelectMgr_BaseIntersector and set it on AIS_InteractiveContext.

gkv311 n's picture

Currently, there is no such an option in AIS nor a simple way to customize behavior. Although there is a base virtual interface SelectMgr_BaseIntersector::ScaleAndTransform(), the underlying implementations are used mostly as a static list of implementation with no simple/designed way to customize them. So if you really need such customization you will have to modify OCCT in some way.