1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug23102
tiv 293211aee0 0030592: Draw Harness, ViewerTest - provide vbackground command unifying vsetbg, vsetbgmode, vsetgradientbg, vsetgrbgmode, vsetcolorbg
A new command vbackground is created. Old background commands are made aliases for the newly created command (including vsetdefaultbg).
Tests are modified using newly added command vbackground.
2019-04-22 19:31:24 +03:00

34 lines
839 B
Plaintext
Executable File

puts "================"
puts "OCC23102"
puts "================"
puts ""
###################################################################################################
# Change the algorithm of rendering the 3d viewer background using tiled texture
###################################################################################################
set BugNumber OCC23102
vinit
vbackground -image [locate_data_file OCC23102.bmp] -imageMode TILED
set x1 58
set y1 4
set R_bg 0.70196002721786499
set G_bg 0.78039199113845825
set B_bg 0.86274499999999998
set WrongColor "$R_bg $G_bg $B_bg"
set Color [vreadpixel ${x1} ${y1} rgb]
#Resume
puts ""
if { "[vreadpixel ${x1} ${y1} rgb]" != "$WrongColor" } {
puts "OK ${BugNumber}"
} else {
puts "Faulty ${BugNumber}"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png