mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0031757: Visualization - Prebuild BVH for Select3D_SensitiveEntity in separate threads
- Added a new mode in SelectMgr_ViewerSelector for computing BVH for Select3D_SensitiveEntity in background which can be activated via method SelectMgr_ViewerSelector::SetToPrebuildBVH(). Default behavior has not been changed. - New class SelectMgr_BVHThreadPool manages background processing of BVH building queue. - Added Select3D_SensitiveEntity::ToBuildBVH() method that checks if BVH (if it used) is in invalidated state. Defined this method for all standard classes inherited from Select3D_SensitiveEntity.
This commit is contained in:
14
tests/v3d/mesh/C1
Normal file
14
tests/v3d/mesh/C1
Normal file
@@ -0,0 +1,14 @@
|
||||
puts "========"
|
||||
puts "OCC31757: Visualization - Prebuild BVH for Select3D_SensitiveEntity in separate threads"
|
||||
puts "========"
|
||||
|
||||
vclear
|
||||
set aShape [locate_data_file occ/Motor-c.brep]
|
||||
restore $aShape s
|
||||
vdisplay s
|
||||
vfit
|
||||
vselbvhbuild 1 -nbThreads 1
|
||||
vselmode s FACE 1
|
||||
vselbvhbuild -wait
|
||||
vselect 0 0 512 512
|
||||
vdump $imagedir/${test_image}.png
|
Reference in New Issue
Block a user