0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / xde / bug26216
CommitLineData
5f07d05d 1puts "========"
2puts "OCC26216"
3puts "========"
4puts ""
5#######################################################################
6# Convert compound to assembly
7#######################################################################
8
9pload ALL
10
11box b1 0 0 0 10 10 10
12box b2 0 0 0 10 10 10
13box b3 0 0 0 10 10 10
14compound b1 b2 b3 c
15
16XNewDoc D
17XAddShape D c 0
18explode c
19XSetColor D c_1 1 0 0
20XSetColor D c_2 0 1 0
21XSetColor D c_3 0 0 1
22XExpand D c
23
24if { [regexp "ASSEMBLY COMPOUND 0:1:1:1 \"COMPOUND\"" [Xdump D]] != 1 } {
25 puts "ERROR: Structure of document is wrong."
26} else {
27 if { [regexp "RED" [XGetShapeColor D 0:1:1:2]] != 1 } {
28 puts "ERROR: Structure of document is wrong."
29 } else {
30 if { [regexp "GREEN" [XGetShapeColor D 0:1:1:3]] != 1 } {
31 puts "ERROR: Structure of document is wrong."
32 } else {
aaf8d6a9 33 if { [regexp "BLUE" [XGetShapeColor D 0:1:1:4]] != 1 } {
5f07d05d 34 puts "ERROR: Structure of document is wrong."
35 }
36 }
37 }
38}
39
40
41
42
43
44
45
46
47
48
49