0024130: Implementing ray tracing visualization core
[occt.git] / tests / bugs / vis / bug173_2
CommitLineData
a87752f3 1puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
2puts "========"
3puts "OCC173"
4puts "(case 2)"
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
352ffd73 12checkshape result
a87752f3 13
14vinit
15tclean result
16vdisplay result
17vfit
18vsetdispmode result 1
19
20set color1 [QAGetPixelColor 175 195]
21regexp {RED +: +([-0-9.+eE]+)} $color1 full rd1
22regexp {GREEN +: +([-0-9.+eE]+)} $color1 full gr1
23regexp {BLUE +: +([-0-9.+eE]+)} $color1 full bl1
24
25vsetmaterial result ALUMINIUM
26
a87752f3 27set color2 [QAGetPixelColor 175 195]
28regexp {RED +: +([-0-9.+eE]+)} $color2 full rd2
29regexp {GREEN +: +([-0-9.+eE]+)} $color2 full gr2
30regexp {BLUE +: +([-0-9.+eE]+)} $color2 full bl2
31
32if { ${rd2} == ${rd1} || ${gr2} == ${gr1} || ${bl2} == ${bl1} } {
33 puts "Error : material of the shape was NOT changed"
34}
35
36set only_screen 1