1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-10 12:25:50 +03:00
occt/tests/bugs/vis/bug26680
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

37 lines
1.0 KiB
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!"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png