0028036: Visualization, AIS_ColoredShape - handle correctly nested compounds within...
[occt.git] / tests / bugs / vis / bug28036_1
CommitLineData
9c86076b 1puts "==========="
2puts "OCC28036"
3puts "Visualization, AIS_ColoredShape - handle correctly nested compounds within Shaded display mode"
4puts "==========="
5puts ""
6
7pload MODELING VISUALIZATION
8box b1 0 0 0 1 2 3
9box b2 0 3 0 2 1 3
10box b3 3 0 0 3 2 1
11compound b1 b2 c12
12compound c12 b3 c
13
14vclear
15vinit View1
16vaxo
17vdisplay -dispMode 1 c
18vfit
19
20vaspects c -setColor BLUE1
21vaspects c -subshapes b1 -setColor RED
22vaspects c -subshapes c12 -setColor GREEN
23
24if { [vreadpixel 100 100 rgb name] != "RED3" } { puts "Error: wrong subshape color" }
25if { [vreadpixel 200 100 rgb name] != "GREEN3" } { puts "Error: wrong subshape color" }
26if { [vreadpixel 200 300 rgb name] != "BLUE3" } { puts "Error: wrong subshape color" }
27
28vdump $imagedir/${casename}.png