1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00
occt/tests/bugs/vis/bug26680
vpa 673cf4e376 0026680: Visualization - Changed behavior of mesh visualization and selection in OMF sample
- handling of global selection mode was added to MeshVS_Mesh;
- corrected unhighlight of interactives with auto-highlight disabled;
- test case for issue 0026680.
2015-09-24 14:13:32 +03:00

37 lines
1005 B
Plaintext

puts "============"
puts "CR26680"
puts "============"
puts ""
##########################################################################################
puts "Visualization - Changed behavior of mesh visualization and selection in OMF sample"
##########################################################################################
pload VISUALIZATION XDE
vinit
meshfromstl m [locate_data_file bug26680.stl]
meshcolors m elem2 1
vselmode 0 1
vmoveto 200 200
if {[vreadpixel 197 257 name] != "CYAN1 1"} {
puts "ERROR: presentation for dynamic highlight of the object is wrong!"
}
vmoveto 0 0
if {[vreadpixel 197 257 name] != "BLUE2 1"} {
puts "ERROR: the object is not unhighlighted after dynamic highlight!"
}
vselect 200 200
if {[vreadpixel 197 257 name] != "GRAY80 1"} {
puts "ERROR: presentation for selection highlight is wrong!"
}
vselect 0 0
if {[vreadpixel 197 257 name] != "BLUE2 1"} {
puts "ERROR: the object is not unhighlighted after selection highlight!"
}
set only_screen 1