3bea4c16 |
1 | puts "TODO OCC7166 ALL: Faulty OCC7166 : result is not Closed shape" |
2 | puts "TODO OCC7166 ALL: The resulting shape is WRONG " |
3 | puts "TODO OCC7166 ALL: Error : The square of the resulting shape is" |
4 | |
5 | puts "============" |
6 | puts "OCC7166" |
7 | puts "============" |
8 | puts "" |
9 | ####################################################################### |
10 | # Improvement of API of ThruSection |
11 | ####################################################################### |
12 | |
13 | set BugNumber OCC7166 |
14 | |
15 | pbsplinecurve pbc1 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 0 0 1 -2 2 0 1 0 1 0 1 2 2 0 1 1 0 0 1 2 -2 0 1 0 -1 0 1 -2 -2 0 1 |
16 | mkedge e1 pbc1 |
17 | wire w1 e1 |
18 | |
19 | #vertex v1 40 0 20 |
20 | #vertex v2 40 0 -20 |
21 | circle c1 40 0 20 0 0 -1 -1 1 0 0.1 |
22 | mkedge ec1 c1 |
23 | wire wc1 ec1 |
24 | |
25 | circle c2 40 0 -20 0 0 -1 -1 1 0 0.1 |
26 | mkedge ec2 c2 |
27 | wire wc2 ec2 |
28 | |
29 | set issolid 0 |
30 | set isruled 0 |
31 | #catch {thrusections result ${issolid} ${isruled} v1 w1 v2} |
32 | catch {thrusections result ${issolid} ${isruled} wc1 w1 wc2} |
33 | |
34 | |
35 | set square 702.858 |
36 | |
37 | set nb_v_good 4 |
38 | set nb_e_good 6 |
39 | set nb_w_good 2 |
40 | set nb_f_good 2 |
41 | set nb_sh_good 1 |
42 | set nb_sol_good 0 |
43 | set nb_compsol_good 0 |
44 | set nb_compound_good 0 |
45 | set nb_shape_good 15 |
46 | |
47 | |
48 | |
49 | set index [lsearch [whatis result] Closed] |
50 | if {$index == -1} { |
51 | puts "Faulty ${BugNumber} : result is not Closed shape" |
52 | |
53 | } |
54 | |
55 | set 3dviewer 0 |
56 | |