For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

How to select AIS_InteractiveObject not fully contained in a rectangle

Shockwave's picture

I have seen that with NIS_View it's possible to select object contained on a rectangle that are fully contained in it or not (using a flag on the Selection function of the NIS_View), but this only works with a NIS_InteractiveObject.
Using the old AIS_InteractiveObject the selection is made with the AIS_InteractiveContext that can make the selection of the objects contained on a rectangle but only the fully contained objects.
In the Select funtion of the AIS_InteractiveContext there is no possibility to specify the 2 cases (Fully contained or Partially contained).
Is there a way to implement the selection of AIS_InteractiveObject (AIS_Line, AIS_Shape...) that are partially contained in a rectangle with the AIS (using AIS_InteractiveContext)?
If now there is not an explicit support for doing this it will be a very useful upgrade for the next release of OpenCascade.

Shockwave's picture

Any ideas?