mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-26 11:05:31 +03:00
- 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.
14 lines
334 B
Plaintext
14 lines
334 B
Plaintext
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 |