33ba8565 |
1 | puts "========" |
2 | puts "OCC28786" |
3 | puts "========" |
4 | puts "" |
5 | ######################################## |
6 | # Refactoring of the Warning/Error reporting system of Boolean Operations Algorithm |
7 | ######################################## |
8 | |
9 | vertex v 0 0 0 |
10 | vertex v1 10 0 0 |
11 | vertex v2 0 0 -3 |
12 | vertex v3 5 0 0 |
13 | edge e1 v v1 |
14 | edge e2 v2 v3 |
15 | compound e1 e2 a |
16 | |
17 | vertex v4 5 0 5 |
18 | vertex v5 5 0 -5 |
19 | edge b v4 v5 |
20 | |
21 | bclearobjects |
22 | bcleartools |
23 | baddobjects a |
24 | baddtools b |
25 | |
26 | if {![regexp "Warning" [bfillds]]} { |
27 | puts "Error: WarningStatus has not been set" |
28 | } |
29 | |
30 | bbuild result |
31 | checkshape result |
32 | checknbshapes result -edge 5 |