e0608a8d |
1 | puts "========" |
2 | puts "OCC25459 AIS_ColoredShape::SetMaterial() should not reset custom colors" |
3 | puts "========" |
4 | |
5 | box b 0 0 0 1 2 3 |
6 | |
7 | # prepare view |
e0608a8d |
8 | vclear |
ba00aab7 |
9 | vinit View1 |
e0608a8d |
10 | vglinfo |
e0608a8d |
11 | vaxo |
ba00aab7 |
12 | vdisplay -dispMode 1 b |
e0608a8d |
13 | vfit |
14 | |
15 | # customize object |
16 | explode b F |
17 | vaspects b -subshapes b_3 -setcolor RED |
18 | vaspects b -setmaterial PLASTIC |
19 | |
20 | # validate results |
ba00aab7 |
21 | if { [vreadpixel 128 256 -rgb -name] != "RED4"} { puts "Error: wrong Face color" } |