5bffb882 |
1 | puts "============" |
2 | puts "OCC25687" |
3 | puts "AIS_ColoredShape should disable back-face culling for Solids with hidden Face" |
4 | puts "============" |
5 | puts "" |
6 | |
7 | set x_check_coord 200 |
8 | set y_check_coord 200 |
9 | |
10 | box b 10 10 10 |
11 | explode b f |
12 | |
13 | vinit View1 |
14 | vclear |
15 | vaxo |
16 | vsetdispmode 1 |
17 | |
18 | vdisplay b |
19 | vviewparams -proj 0.5 0.3 0.1 |
20 | vfit |
21 | |
22 | vaspects b -subshapes b_1 -setcolor GREEN |
23 | vaspects b -subshapes b_2 -setvis 0 |
24 | |
25 | if {"[vreadpixel ${x_check_coord} ${y_check_coord} rgb name]" != "GREEN"} { |
26 | puts "Error: back-face culling should be disabled, but seems to be not." |
27 | } |
28 | |
5747059b |
29 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |