3bea4c16 |
1 | puts "============" |
2 | puts "OCC7166" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Improvement of API of ThruSection |
7 | ####################################################################### |
8 | |
9 | set BugNumber OCC7166 |
10 | |
11 | circle c1 0 0 0 10 |
12 | mkedge e1 c1 |
13 | wire w1 e1 |
14 | |
15 | vertex v1 40 0 20 |
16 | vertex v2 40 0 -20 |
17 | |
18 | set issolid 1 |
19 | set isruled 1 |
20 | catch {thrusections result ${issolid} ${isruled} v1 w1 v2} |
21 | |
22 | |
58cf74e0 |
23 | checkprops result -s 2160.94 |
3bea4c16 |
24 | |
25 | |
a4eba920 |
26 | checknbshapes result -vertex 3 -edge 5 -wire 2 -face 2 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 14 |
3bea4c16 |
27 | |
28 | |
29 | set index [lsearch [whatis result] Closed] |
30 | if {$index == -1} { |
31 | puts "Faulty ${BugNumber} : result is not Closed shape" |
32 | |
33 | } |
34 | |
3bea4c16 |
35 | |