MantisBT - Open CASCADE
View Issue Details
0030641Open CASCADE[OCCT] OCCT:Visualizationpublic2019-04-09 11:352019-10-23 16:56
closedno change required 
[OCCT] 7.4.0 
[OCCT] 7.4.0 
Not needed
0030641: Visualization - possibility to select in predefined ZLayers only
The reason of proposed improvement:

- the viewer scene contains objects in several layers (layer of usual 3D objects and several layers with objects used 2D persistent),
- there are a lot of objects displayed in default ZLayer,
- some of application algorithm requires selection of objects in only one of layers(e.g. in 2D layer).
No tags attached.
related to 0028638new kgv Community Improve pick performance by applying filter before geometry checking 
Issue History
2019-04-09 11:35ndsNew Issue
2019-04-09 11:35ndsAssigned To => kgv
2019-04-09 11:36ndsNote Added: 0083553
2019-04-09 11:49kgvNote Added: 0083555
2019-04-09 11:49kgvNote Edited: 0083555bug_revision_view_page.php?bugnote_id=83555#r20991
2019-04-09 11:49kgvNote Edited: 0083555bug_revision_view_page.php?bugnote_id=83555#r20992
2019-04-09 12:07gitNote Added: 0083557
2019-04-09 12:10ndsNote Added: 0083558
2019-04-09 12:21kgvAssigned Tokgv => nds
2019-04-09 12:21kgvStatusnew => feedback
2019-04-09 13:35kgvRelationship addedrelated to 0028638
2019-09-04 18:11ndsNote Added: 0086745
2019-09-04 18:11ndsAssigned Tonds => bugmaster
2019-09-25 07:50bugmasterStatusfeedback => closed
2019-09-25 07:50bugmasterResolutionopen => no change required
2019-10-23 11:54gitNote Added: 0088490
2019-10-23 16:56apnTest case number => Not needed

2019-04-09 11:36   
One of possible solution is to Deactivate/Activate not necessary objects, but it seems that (as there are a lot of objects) it breaks performance.

So, is it possible to provide an interface to deactivate temporary some of ZLayers in selection mechanism of Visualization?
2019-04-09 11:49   
It looks clumsy introducing extra means of ZLayers deactivation/activation in selection.
Selection restrictions are usually done via selection filters (AIS_InteractiveContext::AddFilter()).

The performance of Deactivation/Activation is another issue.
One of possible improvements is splitting selection entities into dedicated BVH trees per Z-Layer, which would be consistent to how TKOpenGl already manages presentations.
So that adding/removing selectable object into auxiliary Z layer would not be slow in case of a large scene.

2019-04-09 12:07   
Branch CR30641 has been created by nds.

SHA-1: 6e940e66ffe4746f50d088289c0104a2724e89ea

Detailed log of new commits:

Author: nds
Date: Tue Apr 9 12:00:28 2019 +0300

    0030641: Visualization - possibility to select in predefined ZLayers only
2019-04-09 12:10   
Dear Kirill,

please have a look at CR30641.

Best regards, Natalia
2019-09-04 18:11   
Dear bugmaster,

please close this issue.

The reason is that the expected problem with performance has not been discovered in checked cases even without modifications prepared for this issue.
2019-10-23 11:54   
Branch CR30641 has been deleted by kgv.

SHA-1: 6e940e66ffe4746f50d088289c0104a2724e89ea