3bea4c16 |
1 | puts "TODO OCC7166 ALL: The resulting shape is WRONG " |
2 | puts "TODO OCC7166 ALL: Error : The square of the resulting shape is" |
3 | |
4 | puts "============" |
5 | puts "OCC7166" |
6 | puts "============" |
7 | puts "" |
8 | ####################################################################### |
9 | # Improvement of API of ThruSection |
10 | ####################################################################### |
11 | |
12 | set BugNumber OCC7166 |
13 | |
14 | 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 |
15 | mkedge e1 pbc1 |
16 | wire w1 e1 |
17 | |
18 | #vertex v1 40 0 20 |
19 | #vertex v2 40 0 -20 |
20 | circle c1 40 0 20 0 0 -1 -1 1 0 0.1 |
21 | mkedge ec1 c1 |
22 | wire wc1 ec1 |
23 | |
24 | circle c2 40 0 -20 0 0 -1 -1 1 0 0.1 |
25 | mkedge ec2 c2 |
26 | wire wc2 ec2 |
27 | |
28 | set issolid 1 |
29 | set isruled 0 |
30 | #catch {thrusections result ${issolid} ${isruled} v1 w1 v2 } |
31 | catch {thrusections result ${issolid} ${isruled} wc1 w1 wc2} |
32 | |
33 | |
34 | set square 702.921 |
35 | |
36 | |
37 | set nb_v_good 4 |
38 | set nb_e_good 6 |
39 | set nb_w_good 4 |
40 | set nb_f_good 4 |
41 | set nb_sh_good 1 |
42 | set nb_sol_good 1 |
43 | set nb_compsol_good 0 |
44 | set nb_compound_good 0 |
45 | set nb_shape_good 20 |
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 | |