0031221: Visualization - selection filter in context
[occt.git] / tests / bugs / vis / bug173_3
CommitLineData
a87752f3 1puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
2puts "========"
3puts "OCC173"
4puts "(case 3)"
5puts "========"
6puts ""
7###########################################################
8## Impossible to change the material or the transparency of the attached BREP shape.
9###########################################################
10
11restore [locate_data_file OCC173.brep] result
12
352ffd73 13checkshape result
a87752f3 14
15vinit
16tclean result
17vdisplay result
18vfit
19vsetdispmode result 1
20
ccadc126 21set color1 [vreadpixel 175 195 rgb]
22set rd1 [lindex $color1 0]
23set gr1 [lindex $color1 1]
24set bl1 [lindex $color1 2]
a87752f3 25
26########################################################
27vsettransparency result 0.5
28
ccadc126 29set color2 [vreadpixel 175 195 rgb]
30set rd2 [lindex $color2 0]
31set gr2 [lindex $color2 1]
32set bl2 [lindex $color2 2]
a87752f3 33
34if { ${rd2} == ${rd1} || ${gr2} == ${gr1} || ${bl2} == ${bl1} } {
35 puts "Error : vsettransparency of shape was NOT made"
36}
37
5747059b 38checkview -screenshot -3d -path ${imagedir}/${test_image}.png
a87752f3 39