f1aa2b62 |
1 | |
2 | puts "========" |
3 | puts "OCC745" |
4 | puts "========" |
5 | puts "" |
6 | ################################################### |
7 | ## Exception thrown: Standard_ConstructionError: Offset wire is not closed: |
8 | ################################################### |
9 | |
10 | restore [locate_data_file BUC60830-face2.brep] f |
352ffd73 |
11 | checkshape f |
f1aa2b62 |
12 | |
13 | if { [catch { mkoffset result f 45 -0.042225 } status] } { |
14 | puts "Faulty OCC745" |
15 | } else { |
16 | renamevar result_1 result |
17 | set nb_info [nbshapes result] |
18 | regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve |
19 | puts [format "Result shape result contains %s vertexes" $ve] |
20 | if { $ve == 0 } { |
21 | puts [format "Faulty : Result shape is NULL shape"] |
22 | } else { |
23 | regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi |
24 | if {$wi > 1 } { |
25 | set ll [explode result w] |
26 | set num [llength $ll] |
27 | puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num] |
28 | foreach {k} $ll { |
352ffd73 |
29 | checkshape $k |
f1aa2b62 |
30 | regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs |
31 | if { $cs != 0 } { |
32 | puts [format "Faulty : Result shape is UNclosed wire !!! " $k] |
33 | } else { |
34 | puts [format "OK: Result shape is CLOSED wire !!! "] |
35 | } |
36 | } |
37 | } |
38 | } |
39 | } |
40 | |
41 | set length 72.1851 |
42 | set 2dviewer 0 |
43 | |