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