0025987: Integration part of modified unstable test cases
[occt.git] / tests / bugs / modalg_4 / bug745_12
CommitLineData
9aa684ed 1puts "TODO OCC23748 ALL: Error: Offset is not done."
2puts "TODO OCC23748 ALL: Faulty OCC745"
f1aa2b62 3
4puts "========"
5puts "OCC745"
6puts "========"
7puts ""
8##################################################
9# Exception thrown: Standard_ConstructionError: Offset wire is not closed.
10##################################################
11
12restore [locate_data_file OCC745_nb3.brep] w
352ffd73 13checkshape w
f1aa2b62 14
15if { [catch { mkoffset result w 1 10 } status] } {
16 puts "Faulty OCC745"
17} else {
18 renamevar result_1 result
19 set nb_info [nbshapes result]
20 regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
21 puts [format "Result shape result contains %s vertexes" $ve]
22 if { $ve == 0 } {
23 puts [format "Faulty : Result shape is NULL shape"]
24 } else {
25 regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
26 if {$wi > 1 } {
27 set ll [explode result w]
28 set num [llength $ll]
29 puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
30 foreach {k} $ll {
352ffd73 31 checkshape $k
f1aa2b62 32 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
33 if { $cs != 0 } {
34 puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
35 } else {
36 puts [format "OK: Result shape is CLOSED wire !!! "]
37 }
38 }
39 }
40 }
355c1551 41 set length 0
42 set 2dviewer 0
f1aa2b62 43}