diff --git a/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx b/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx index 12f89014d4..13a4a6e03a 100644 --- a/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx +++ b/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx @@ -173,6 +173,16 @@ public: Standard_EXPORT gp_Pnt GetFarPnt() const; + //! Returns active selecting volume that was built during last + //! run of OCCT selection mechanism + NCollection_Handle ActiveVolume() const + { + if (myActiveSelectionType == Unknown) + return NCollection_Handle(); + + return mySelectingVolumes[myActiveSelectionType]; + } + private: enum { Frustum, FrustumSet, VolumeTypesNb }; //!< Defines the amount of available selecting volumes