Files
OCCT/tests/bugs/vis/bug23363
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

19 lines
489 B
Plaintext
Executable File

puts "============"
puts "0023363: Lost gradient background when switching to the hollow interior style"
puts "============"
puts ""
vclear
vinit View1
vaxo
vbackground -gradient 0.980392 0 0 GREEN -gradientMode VERTICAL
pcylinder p 100 200
vdisplay -dispMode 1 p
vaspects p -setInteriorStyle HOLLOW -setDrawEdges 1
set color1 [vreadpixel 10 0 rgb]
set rd1 [lindex $color1 0]
if { $rd1 == 0 } { puts "Faulty ${BugNumber}" }
checkview -screenshot -3d -path ${imagedir}/${test_image}.png