0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / bugs / bug22912
1 puts "==========="
2 puts "OCC22912: After calling AIS_InteractiveContext::UnsetColor objects are drawn with the same color when transparency is changed"
3 puts "==========="
4 puts ""
5
6 pload MODELING VISUALIZATION
7 restore [locate_data_file bug22912_p.brep] p
8 explode p
9 vinit View1
10 vdisplay p_1
11 vdisplay p_2
12 vfit
13 vsetdispmode p_1 1
14 vsetdispmode p_2 1
15 vsetcolor p_1 red
16 vsetcolor p_2 green
17 vunsetcolor p_1
18 vunsetcolor p_2
19 vsetcolor p_1 red
20 vsetcolor p_2 green
21 vsettransparency p_1 0.5
22 vsettransparency p_1 0
23
24 checkcolor 120 150 0.831 0.000 0.000
25 checkcolor 180 273 0.000 0.753 0.000
26
27 vdump $imagedir/${casename}.png