Correction of testing case for issue 24374
[occt.git] / tests / bugs / xde / bug6555
CommitLineData
e54706ed 1puts "========"
2puts "OCC6555"
3puts "========"
4puts ""
5####################################################
6## ShapeFix_Shape modifies valid shape and return wrong status DONE.
7####################################################
8
9set BugNumber OCC6555
10
11box s1 10 10 10
12
13set result [checkshape s1]
14set index [lsearch ${result} Faulty]
15if {$index > -1} {
16 puts "Faulty ${BugNumber} : checkshape is wrong for s1"
17} else {
18 puts "checkshape is good for s1"
19}
20
21set DumpList1 [dump s1]
22set SOLID_Adress_1 [lindex ${DumpList1} 29]
23
24fixshape result s1
25
26set res [checkshape result]
27set index [lsearch ${res} Faulty]
28if {$index > -1} {
29 puts "Faulty ${BugNumber} : checkshape is wrong for res"
30} else {
31 puts "checkshape is good for res"
32}
33
34set DumpList2 [dump result]
35set SOLID_Adress_2 [lindex ${DumpList2} 29]
36
37if { ${SOLID_Adress_1} != ${SOLID_Adress_2} } {
38 puts "Faulty ${BugNumber}"
39} else {
40 puts "OK ${BugNumber}"
41}
42
43set 2dviewer 0
44