1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0032180: Visualization - StdSelect_BRepOwner::SetLocation() does not update selected sub-shape

StdSelect_BRepOwner::SetLocation() now propagates location to sub-shape presentation instead of invalidating it.
This commit is contained in:
kgv
2021-02-27 10:48:32 +03:00
parent bc0711a5c3
commit ba590cbf15
2 changed files with 12 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
puts "==========="
puts "OCC27986"
puts "Visualization - AIS_InteractiveContext::SetLocation() does not update dynamic highlighting"
puts "0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynamic highlighting"
puts "Test local selection"
puts "==========="
puts ""
@@ -15,10 +14,12 @@ vdisplay -dispMode 0 -highMode 1 b
vfit
vzoom 0.5
vselmode b 4 1
vselect 150 150
vmoveto 250 250
vsetlocation b 2 1 0
set aColor1 [vreadpixel 220 200 rgb name]
set aColor2 [vreadpixel 350 220 rgb name]
if { "$aColor1" != "BLACK" || "$aColor2" != "CYAN2" } { puts "Error: dynamic highlighting is not updated" }
if { "[vreadpixel 150 150 rgb name]" != "BLACK" } { puts "Error: sub-shape highlighting is not updated" }
vdump $imagedir/${casename}.png