1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/vis/bug30672
kgv 66278500db 0030672: Visualization - AIS_InteractiveContext::SetLocation() sets invalid selection BVH flag to removed object
SelectMgr_SelectionManager::Remove() now deactivates selection before removal.
2019-04-26 16:59:35 +03:00

22 lines
684 B
Plaintext

puts "============="
puts "0030672: Visualization - AIS_InteractiveContext::SetLocation() sets invalid selection BVH flag to removed object"
puts "============="
pload MODELING VISUALIZATION
box b 1 2 3
vclear
vinit View1
vaxo
vdisplay -dispMode 1 -highMode 1 b
vfit
vremove -context b
vlocation b -setLocation 2 0 0
vdisplay -dispMode 1 b
vmoveto 200 200
if { [vreadpixel 150 150 -rgb -name] != "BLACK" } { puts "Error: wrong prs location" }
if { [vreadpixel 300 300 -rgb -name] != "DARKGOLDENROD3" } { puts "Error: wrong sel location" }
vmoveto 300 300
if { [vreadpixel 300 300 -rgb -name] != "DARKTURQUOISE" } { puts "Error: wrong highlighting" }
vdump $imagedir/${casename}.png