0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / bugs / bug25459_coloredshape
1 puts "========"
2 puts "OCC25459 AIS_ColoredShape::SetMaterial() should not reset custom colors"
3 puts "========"
4
5 pload MODELING VISUALIZATION
6 box b 0 0 0 1 2 3
7
8 # prepare view
9 vclear
10 vinit View1
11 vglinfo
12 vaxo
13 vdisplay -dispMode 1 b
14 vfit
15
16 # customize object
17 explode b F
18 vaspects b -subshapes b_3 -setcolor RED
19 vaspects b -setmaterial PLASTIC
20
21 # validate results
22 if { [vreadpixel 128 256 -rgb -name] != "RED4"} { puts "Error: wrong Face color" }
23 vdump $imagedir/${casename}.png