1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
vpa f751596e46 0024623: Visualization - improve selection mechanism
Redesign of selection mechanism:
- implemented 3-level BVH tree for selection;
- selection now calculates in 3D space;
- intersection tests were moved to SelectMgr_BaseFrustum descendants;
- removed .cdl files in Select3D and .cdl related to selection in MeshVS;
- SelectMgr_ViewerSelectors are now shared between local and global contexts;
- transformations of sensitive entities are now stored in SelectMgr_SelectableObject only. Sensitive entities are independent from transformations, it is applied to SelectMgr_SelectingVolumeManager instance only;
- connected and multiple connected interactive objects are now represented by their child objects only for SelectMgr_SelectionManager;
- if interactive object has child objects, they will be stored as separate objects in SelectMgr_SelectionManager now.
- test cases bugs/vis/bug24623_1, bug24623_2, bug24623_3, bug24623_4 to test performance and memory issues.
2015-04-06 17:27:38 +03:00

64 lines
1.2 KiB
Plaintext

vclear
box t_box 100 100 100
vdisplay t_box
vfit
vmoveto 0 0
vselmode 3 1
vmoveto 140 100
vmoveto 100 346
vselect 100 346
vmoveto 0 0
vmoveto 130 247
vmoveto 0 0
vselect 130 247 1
vmoveto 0 0
vmoveto 100 346
vmoveto 0 0
vmoveto 130 247
vmoveto 0 0
vmoveto 300 351
vmoveto 0 0
vviewparams -scale 6.063093 -proj 0.817216 -0.217801 0.535373 -up -0.420838 0.411627 0.808368 -at 26.4654518144607 56.2503832914726 34.5651685621603
vfit
vmoveto 0 0
vmoveto 140 100
vmoveto 100 329
vmoveto 0 0
vmoveto 200 245
vmoveto 0 0
vmoveto 300 349
vmoveto 0 0
vselect 100 329 1
vmoveto 0 0
vmoveto 100 329
vmoveto 0 0
vmoveto 200 245
vmoveto 0 0
vmoveto 300 349
vmoveto 0 0
vviewparams -scale 6.063093 -proj 0.524772 0.731256 0.434393 -up 0.716008 -0.104342 -0.691426 -at 21.6212460112894 0.5192504580656 16.591446657356
vfit
vmoveto 0 0
vmoveto 300 300
vmoveto 214 112
vmoveto 0 0
vmoveto 104 203
vmoveto 0 0
vmoveto 209 35
vmoveto 0 0
vselect 0 0
vmoveto 0 0
vmoveto 104 203
vmoveto 0 0
vviewparams -scale 6.063093 -proj -0.444872 -0.214876 0.86866 -up 0.109494 -0.886324 -0.185966 -at 71.8115798514333 53.1349971091326 8.4539251074103
vfit
vmoveto 0 0
vmoveto 200 200
vmoveto 404 210
vmoveto 0 0
vselect 221 97
vmoveto 0 0
vselect 404 210
vmoveto 0 0