0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / xde / bug30779
CommitLineData
d6b200e0 1puts "============================================================================"
2puts "0030779: Data Exchange - Problems with located subshapes in expand compounds"
3puts "============================================================================"
4puts ""
5
6pload DCAF
7
8XOpen [locate_data_file bug30779.xbf] D
9XExpand D 1
10
11# check model structure after expand
12set result [XGetTopLevelShapes D]
13if {$result != "0:1:1:1 0:1:1:2 0:1:1:3 "} {
14 puts "Error: wrong result of Expand compounds."
15}
16
17# check colors of subshapes
18for {set i 1} {$i <= 4} {incr i} {
19 set sublabel 0:1:1:3:$i
20 set color [XGetShapeColor D $sublabel]
ba00aab7 21 if {$color != "GRAY88"} { puts "Error: wrong color after expand compounds." }
d6b200e0 22}
23
24Close D
25