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