View Issue Details

IDProjectCategoryView StatusLast Update
0033209Open CASCADEOCCT:Visualizationpublic2022-11-16 17:36
Reporteroan Assigned Tovpozdyayev  
Status newResolutionopen 
Target Version7.7.1 
Summary0033209: No possibility to select only objects visible to user using API of AIS_InteractiveContext
DescriptionIn contrast to SelectDetected() neither SelectPoint(), nor SelectPolygon(), nor SelectRectangle() allow to select objects that are visible to user only, i.e. having two objects one of which is behind another, both will be selected using these methods despite of the first one is visually hidden and may be omitted. In other words current selection scheme allows to select objects by X-Ray so it passes through the entire scene, however in some scenarios it is preferable to stop at the first hit on the closest object.

Changing PickingStrategy parameter seems to have no effect.
Steps To Reproducepload ALL

box b 10 10 10
box c 20 0 0 10 10 10

vsetdispmode 1
vdisplay b c


# Select visible object in viewer using rectangular selection and rotate view so both boxes are visible.
# Result: both boxes are selected, despite one of them is completely hidden by an another.
TagsNo tags attached.
Test case number


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-11-16 17:34 oan New Issue
2022-11-16 17:34 oan Assigned To => kgv
2022-11-16 17:36 oan Assigned To kgv => vpozdyayev