0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug745_4
CommitLineData
f1aa2b62 1puts "TODO OCC12345 ALL: Faulty : Result shape is NULL shape"
2puts "TODO OCC12345 ALL: Exception: result is not a topological shape!!!"
3puts "TODO OCC12345 ALL: TEST INCOMPLETE"
4
5pload QAcommands
6
7puts "========"
8puts "OCC745"
9puts "========"
10puts ""
11###########################################
12# Exception Standard_NullValue while performing the offset:
13###########################################
14
15restore [locate_data_file OCC745_pocket1.brep] a
352ffd73 16checkshape a
f1aa2b62 17
18if { [catch { mkoffset result a 1 -10 } status] } {
19 puts "Faulty OCC745"
20} else {
21 renamevar result_1 result
22 set nb_info [nbshapes result]
23 set ve 0
24 regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
25 puts [format "Result shape result contains %s vertexes" $ve]
26 if { $ve == 0 } {
27 puts [format "Faulty : Result shape is NULL shape"]
28 } else {
29 regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
30 if {$wi > 1 } {
31 set ll [explode result w]
32 set num [llength $ll]
33 puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
34 foreach {k} $ll {
352ffd73 35 checkshape $k
f1aa2b62 36 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
37 if { $cs != 0 } {
38 puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
39 } else {
40 puts [format "OK: Result shape is CLOSED wire !!! "]
41 }
42 }
43 }
44 }
45}
46
47set length 0
48set 2dviewer 0
49