f1aa2b62 |
1 | puts "TODO OCC12345 ALL: Faulty : Result shape is NULL shape" |
2 | puts "TODO OCC12345 ALL: Exception: result is not a topological shape!!!" |
3 | puts "TODO OCC12345 ALL: TEST INCOMPLETE" |
4 | |
5 | pload QAcommands |
6 | |
7 | puts "========" |
8 | puts "OCC745" |
9 | puts "========" |
10 | puts "" |
11 | ########################################### |
12 | # Exception Standard_NullValue while performing the offset: |
13 | ########################################### |
14 | |
15 | restore [locate_data_file OCC745_pocket1.brep] a |
352ffd73 |
16 | checkshape a |
f1aa2b62 |
17 | |
18 | if { [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 | |
47 | set length 0 |
48 | set 2dviewer 0 |
49 | |